From 88283ad6b6fd47b4778125dee099223fe7cd1fe1 Mon Sep 17 00:00:00 2001 From: stswangzhiping <59632378+stswangzhiping@users.noreply.github.com> Date: Fri, 27 Mar 2026 14:02:34 +0800 Subject: [PATCH] chore(tools): box-install-from-tar runs bundled install.sh (no curl/CDN) Made-with: Cursor --- tools/box-install-from-tar.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tools/box-install-from-tar.sh diff --git a/tools/box-install-from-tar.sh b/tools/box-install-from-tar.sh new file mode 100644 index 0000000..cfe82dd --- /dev/null +++ b/tools/box-install-from-tar.sh @@ -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