feat: install.sh 自动下载安装 auth-rt(无需手动 clone)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ywkj 2026-03-20 18:36:47 +08:00
parent 55f4864929
commit dbce7ceef4
1 changed files with 7 additions and 5 deletions

View File

@ -2,11 +2,13 @@
set -euo pipefail set -euo pipefail
cd "$(dirname "$0")" cd "$(dirname "$0")"
# Prerequisite: auth-rt binary must be installed # Auto-install auth-rt if not found
if ! command -v auth-rt &>/dev/null && [ ! -x "$HOME/.openclaw/bin/auth-rt" ]; then if ! command -v auth-rt &>/dev/null && [ ! -x "$HOME/.local/bin/auth-rt" ]; then
echo "ERROR: auth-rt not found. Install it:" echo "auth-rt not found, installing..."
echo " cd ~/clawd/skills/auth-runtime && ./install.sh" _tmp="$(mktemp -d)"
exit 1 git clone --depth 1 http://192.168.0.108:3030/agent-skills/auth-runtime.git "$_tmp/auth-runtime"
bash "$_tmp/auth-runtime/install.sh"
rm -rf "$_tmp"
fi fi
npm install npm install