1688-product-master/install.sh

25 lines
670 B
Bash
Executable File

#!/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")"
echo "Building $SKILL_NAME..."
bun install --frozen-lockfile
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 <command> [args...]"