diff options
| author | Adam Malczewski <[email protected]> | 2026-06-02 21:57:06 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-02 21:57:06 +0900 |
| commit | 4b45d33c256cf580a53054078be6fd7148fa6302 (patch) | |
| tree | 0f549e08607f083d1f04306ce35e132923d6e3d3 /bin | |
| parent | d9f53727845dface3e6d8a84ba2270b1de55482b (diff) | |
| download | dispatch-4b45d33c256cf580a53054078be6fd7148fa6302.tar.gz dispatch-4b45d33c256cf580a53054078be6fd7148fa6302.zip | |
Fix build scripts and deployment port issue
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/build-pkg | 5 | ||||
| -rwxr-xr-x | bin/install-pkg | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/bin/build-pkg b/bin/build-pkg index d257efc..f8bc8b2 100755 --- a/bin/build-pkg +++ b/bin/build-pkg @@ -8,6 +8,11 @@ # # Override frontend build target with VITE_API_URL, e.g.: # VITE_API_URL="https://api.example.com" bin/build-pkg +# +# The patched `cs` code-search binary is reused from an already-installed +# code-search package instead of being recompiled. Force a fresh clone+build +# (required after bumping _cs_commit in the PKGBUILD) with: +# DISPATCH_FORCE_CS_BUILD=1 bin/build-pkg set -euo pipefail diff --git a/bin/install-pkg b/bin/install-pkg index 9665847..9af784d 100755 --- a/bin/install-pkg +++ b/bin/install-pkg @@ -35,7 +35,15 @@ declare -a names declare -a paths if [ $# -eq 0 ]; then - names=(dispatch dispatch-systemd code-search) + names=(dispatch dispatch-systemd) + # code-search ships a self-contained `cs` binary pinned to _cs_commit in the + # PKGBUILD; it rarely changes. Skip reinstalling it if it's already present — + # run `bin/install-pkg code-search` to force a reinstall (e.g. after a bump). + if pacman -Qq code-search &>/dev/null; then + echo "code-search already installed — skipping (run 'bin/install-pkg code-search' to force)" + else + names+=(code-search) + fi elif [ "${1:-}" = "--all" ]; then names=(dispatch dispatch-systemd dispatch-s6 dispatch-electron code-search) else |
