diff options
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 |
