fix: ship hermit-update (and hermit-service) as 1.0.1
ci / tcc-check (push) Failing after 42s
ci / linux (aarch64, 0) (push) Skipped
ci / linux (x86, 1) (push) Skipped
ci / linux (x86_64, 1) (push) Skipped
ci / windows (push) Skipped

Install hermit-update / hermit-service from make install and bootstrap;
keep cst-agent-* as compat symlinks.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WHC
2026-10-29 22:00:07 +08:00
co-authored by Cursor
parent 41f4cf85ee
commit f29c1000b6
6 changed files with 83 additions and 31 deletions
+6 -4
View File
@@ -75,15 +75,17 @@ main() {
echo "==> install to $PREFIX/bin"
make install
cat >"$PREFIX/bin/cst-agent-update" <<EOF
cat >"$PREFIX/bin/hermit-update" <<EOF
#!$PREFIX/bin/bash
exec bash "$dir/scripts/bootstrap_termux.sh" "$dir" "\$@"
EOF
chmod 0755 "$PREFIX/bin/cst-agent-update"
chmod 0755 "$PREFIX/bin/hermit-update"
ln -sfr "$PREFIX/bin/hermit-update" "$PREFIX/bin/cst-agent-update" 2>/dev/null || \
ln -sf hermit-update "$PREFIX/bin/cst-agent-update"
echo
echo "OK: $("$PREFIX/bin/cst-agent" --version)"
echo "Run 'cst-agent' inside a project directory; upgrade later with 'cst-agent-update'."
echo "OK: $("$PREFIX/bin/hermit" --version 2>/dev/null || "$PREFIX/bin/cst-agent" --version)"
echo "Run 'hermit' inside a project directory; upgrade later with 'hermit-update'."
echo "The first start asks for the provider and its API key and saves them."
}