feat: install.sh 自动下载安装 auth-rt(无需手动 clone)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ece7db4cf2
commit
b29037526b
12
install.sh
12
install.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue