packaging(macos): ship vectorcraft-cli inside VectorCraft.app

The ArtCraft Launcher registers an app for agents only when its CLI sits
beside the app's executable. Copy vectorcraft-cli into Contents/MacOS and
sign it as nested code before the bundle is sealed; the separate CLI zip
stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-12-03 00:27:22 +01:00
1 parent f207334070
commit 55ca1aaae1
2 files changed
+8 -2

No files matched your search

+3 -1
View File
@@ -76,11 +76,13 @@ The release packages ship `vectorcraft-cli` alongside the desktop app, so no bui
|---|---|
| Windows (MSI) | `%LOCALAPPDATA%\Programs\ArtCraft\VectorCraft\vectorcraft-cli.exe` by default (`C:\Program Files\ArtCraft\VectorCraft\vectorcraft-cli.exe` for an all-users install, under `Program Files (x86)` instead for the 32-bit build, or wherever you installed it otherwise), not on `PATH` |
| Linux (deb, rpm) | `/usr/bin/vectorcraft-cli` |
| macOS | the separate `vectorcraft-cli-<version>-macos-<arch>.zip` release asset (the `.app` holds only the desktop app) |
| macOS | `/Applications/VectorCraft.app/Contents/MacOS/vectorcraft-cli` (beside the app, where the ArtCraft Launcher finds it), or the separate `vectorcraft-cli-<version>-macos-<arch>.zip` release asset |
```sh
# Windows (PowerShell), default install folder
claude mcp add vectorcraft -- "$env:LOCALAPPDATA\Programs\ArtCraft\VectorCraft\vectorcraft-cli.exe" mcp
# macOS
claude mcp add vectorcraft -- /Applications/VectorCraft.app/Contents/MacOS/vectorcraft-cli mcp
# Linux, or macOS with the CLI unzipped onto PATH
claude mcp add vectorcraft -- vectorcraft-cli mcp
```
+5 -1
View File
@@ -117,6 +117,9 @@ echo "==> assembling $APP"
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources"
# Executable and icon carry the display name (CFBundleExecutable / CFBundleIconFile).
cp "$WORK/bin/vectorcraft" "$APP/Contents/MacOS/VectorCraft"
# The CLI too, beside the app: the ArtCraft Launcher finds `vectorcraft-cli` next to the app's
# executable and registers `vectorcraft-cli mcp` for agents.
cp "$WORK/bin/vectorcraft-cli" "$APP/Contents/MacOS/vectorcraft-cli"
cp "$ROOT/assets/app-icon/vectorcraft.icns" "$APP/Contents/Resources/VectorCraft.icns"
sed -e "s/@VERSION@/$VERSION/g" -e "s/@SHORT_VERSION@/$SHORT_VERSION/g" \
-e "s/@BUILD_SHA@/${VECTORCRAFT_BUILD_SHA:-unknown}/g" \
@@ -127,7 +130,8 @@ printf 'APPL????' >"$APP/Contents/PkgInfo"
copy_docs "$APP/Contents/Resources"
# Sign inside-out: nested code first, then the bundle itself (no --deep on the final signature).
# Today the only nested code is the main executable; frameworks/helpers would be signed here too.
# The bundled CLI is nested executable code; sign it before sealing the app bundle.
sign --options runtime --identifier ai.storyteller.vectorcraft-cli "$APP/Contents/MacOS/vectorcraft-cli"
sign --options runtime --entitlements "$HERE/entitlements.plist" "$APP/Contents/MacOS/VectorCraft"
sign --options runtime --entitlements "$HERE/entitlements.plist" "$APP"
codesign --verify --strict --deep --verbose=2 "$APP"