chore(tools): box-install-from-tar runs bundled install.sh (no curl/CDN)
Made-with: Cursor
This commit is contained in:
7
tools/box-install-from-tar.sh
Normal file
7
tools/box-install-from-tar.sh
Normal 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
|
||||||
Reference in New Issue
Block a user