#!/usr/bin/env bash # Install 1688-product-master to a target directory. # Bundles the skill + auth-runtime into a single self-contained file. # # Usage: # ./install.sh # installs to ~/.openclaw/skills/ # ./install.sh /custom/path/ set -euo pipefail SKILL_NAME="1688-product-master" DEST="${1:-$HOME/.openclaw/skills}" cd "$(dirname "$0")" # Always fetch latest git dependencies rm -rf node_modules/@clawd npm install echo "Building $SKILL_NAME..." bun build scripts/run.ts --outfile dist/run.js --target bun mkdir -p "$DEST/$SKILL_NAME" cp dist/run.js "$DEST/$SKILL_NAME/run.js" echo "Installed: $DEST/$SKILL_NAME/run.js" echo "Run with: bun $DEST/$SKILL_NAME/run.js [args...]"