feat: install.sh 自动下载安装 auth-rt(无需手动 clone)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
993f038ae9
commit
1884efa54e
12
install.sh
12
install.sh
|
|
@ -2,11 +2,13 @@
|
|||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Prerequisite: auth-rt binary must be installed
|
||||
if ! command -v auth-rt &>/dev/null && [ ! -x "$HOME/.openclaw/bin/auth-rt" ]; then
|
||||
echo "ERROR: auth-rt not found. Install it:"
|
||||
echo " cd ~/clawd/skills/auth-runtime && ./install.sh"
|
||||
exit 1
|
||||
# Auto-install auth-rt if not found
|
||||
if ! command -v auth-rt &>/dev/null && [ ! -x "$HOME/.local/bin/auth-rt" ]; then
|
||||
echo "auth-rt not found, installing..."
|
||||
_tmp="$(mktemp -d)"
|
||||
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
|
||||
|
||||
npm install
|
||||
|
|
|
|||
Loading…
Reference in New Issue