Skip to content

Commit 59e19a8

Browse files
runkidsclaude
andcommitted
fix(ci): skip MCP rebuild if pre-built and signed
In CI, the beforeBuildCommand was rebuilding MCP and overwriting the signed binary. Now it checks if CI=true and binary exists, skipping the rebuild to preserve the signed version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 27c20a0 commit 59e19a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "tsc && vite build",
1111
"build:tauri": "tauri build --bundles dmg",
1212
"build:mcp": "cargo build -p packageflow-mcp && node scripts/ensure-mcp-alias.mjs --profile=debug",
13-
"build:mcp:release": "cargo build -p packageflow-mcp --release && node scripts/ensure-mcp-alias.mjs --profile=release",
13+
"build:mcp:release": "[ -n \"$CI\" ] && [ -f target/release/packageflow-mcp ] && echo 'Skipping MCP build in CI (pre-built and signed)' || (cargo build -p packageflow-mcp --release && node scripts/ensure-mcp-alias.mjs --profile=release)",
1414
"prebuild:tauri": "pnpm test:mcp && pnpm build:mcp:release",
1515
"predev:tauri": "pkill -f packageflow-mcp || true; pnpm build:mcp",
1616
"preview": "vite preview",

0 commit comments

Comments
 (0)