From 55ca1aaae18056fd9a8ab5f13b5f93bbd602355a Mon Sep 17 00:00:00 2001 From: David Mann Date: Thu, 3 Dec 2026 00:27:22 +0100 Subject: [PATCH] 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 --- docs/mcp.md | 4 +++- packaging/macos/package.sh | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/mcp.md b/docs/mcp.md index e716a1a08e..263e5b9249 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -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--macos-.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--macos-.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 ``` diff --git a/packaging/macos/package.sh b/packaging/macos/package.sh index e4df44c17d..27dab6ddb2 100755 --- a/packaging/macos/package.sh +++ b/packaging/macos/package.sh @@ -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"