deploy: check for zstd and report the installed version in either location

This commit is contained in:
raucao committed 2026-11-13 14:34:10 +04:00
1 parent a41700d212
commit 75b70bf99b
1 file changed
+6 -2
+6 -2
View File
@@ -23,6 +23,7 @@ die() { printf 'regent-deploy: %s\n' "$*" >&2; exit 1; }
command -v ssh >/dev/null || die "ssh not found"
command -v pkg-config >/dev/null || die "pkg-config not found"
command -v tar >/dev/null || die "tar not found"
command -v zstd >/dev/null || die "zstd not found (needed for tar --zstd)"
# A binary built against a newer libadwaita/GTK than this machine has will die
# with a symbol lookup error, so compare first instead of letting you debug it.
@@ -48,13 +49,16 @@ if [ -n "${REGENT_DEPLOY_PKG:-}" ]; then
sudo pacman -U --noconfirm "$tmp/$(basename "$pkg")"
else
say "pulling the install tree into ~/.local"
mkdir -p "$HOME/.local"
ssh "$HOST" "$REMOTE --emit" | tar -x --zstd -C "$HOME/.local"
glib-compile-schemas "$HOME/.local/share/glib-2.0/schemas"
update-desktop-database "$HOME/.local/share/applications" >/dev/null 2>&1 || true
fi
if command -v regent >/dev/null; then
if [ -x "$HOME/.local/bin/regent" ]; then
say "installed: $("$HOME/.local/bin/regent" --version)"
elif command -v regent >/dev/null; then
say "installed: $(regent --version)"
else
say "installed $HOME/.local/bin/regent"
say "installed, but the binary is not on PATH"
fi