master
noah Publish 1.0.0 a09b9ee 2mo ago
#!/bin/bash
# install.sh for wire-harness-designer (app) — runs from the extracted module dir.
set -euo pipefail
DIR="$(cd "$(dirname "$0")" && pwd)"; cd "$DIR"

BIN_DIR="${HOME}/.local/bin"; mkdir -p "$BIN_DIR"
chmod +x "$DIR/bin/wire-harness-designer"
ln -sfn "$DIR/bin/wire-harness-designer" "$BIN_DIR/wire-harness-designer"
echo "Installed launcher -> $BIN_DIR/wire-harness-designer"

# install the user skill so the agent can discover the app
SKILL_DIR="${HOME}/.claude/skills/wire-harness-designer"
if [ -f "$DIR/SKILL.md" ]; then
  mkdir -p "$SKILL_DIR"
  install -m 0644 "$DIR/SKILL.md" "$SKILL_DIR/SKILL.md"
  echo "Installed skill -> $SKILL_DIR/SKILL.md"
fi

echo "wire-harness-designer installed. Launch it with: wire-harness-designer open"