video-product-finder/install.sh

25 lines
548 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
SKILL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "Installing video-product-snapshot skill..."
# Check dependencies
for cmd in ffmpeg ffprobe bun; do
if ! command -v "$cmd" &>/dev/null; then
echo "ERROR: '$cmd' not found in PATH. Please install it first." >&2
exit 1
fi
done
# Install npm dependencies
cd "$SKILL_DIR"
bun install
# Build dist
bun run build
echo "Done. Run with: bun dist/run.js <command> [args]"
echo "Requires: ANTHROPIC_API_KEY env var for product detection."