1688-product-master/install.sh

21 lines
666 B
Bash
Raw Normal View History

2026-03-11 23:36:59 +00:00
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
# Prerequisite: auth-runtime must be cloned at ~/clawd/skills/auth-runtime
if [ ! -d "$HOME/clawd/skills/auth-runtime/src" ]; then
echo "ERROR: auth-runtime not found at ~/clawd/skills/auth-runtime"
echo "Run: git clone http://192.168.0.108:3030/agent-skills/auth-runtime.git ~/clawd/skills/auth-runtime"
exit 1
fi
echo "Building 1688-product-master..."
2026-03-11 23:36:59 +00:00
bun build scripts/run.ts --outfile dist/run.js --target bun
DEST="${1:-$HOME/.openclaw/skills}"
SKILL_NAME="1688-product-master"
2026-03-11 23:36:59 +00:00
mkdir -p "$DEST/$SKILL_NAME"
cp dist/run.js "$DEST/$SKILL_NAME/run.js"
echo "Installed: $DEST/$SKILL_NAME/run.js"