chore(tools): box-install-from-tar runs bundled install.sh (no curl/CDN)

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-27 14:02:34 +08:00
parent 7823edc7b3
commit 88283ad6b6
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# 在 BOX 上由 sudo 执行:先解压本机 tarball,再运行包内 install.sh(避免 raw.githubusercontent CDN 滞后;离线机也可不用 curl)。
set -euo pipefail
rm -rf /opt/clawd
mkdir -p /opt/clawd
tar xzf "${1:-$HOME/clawd-deploy.tgz}" -C /opt/clawd
exec bash /opt/clawd/install.sh