From fb3806500cbb2bb091712ebb334ff36819831002 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 19 Sep 2026 16:10:54 +0000 Subject: [PATCH] fix(build): exclude Claude Agent SDK platform binaries from packaged app The macOS universal release failed because electron-builder auto-unpacked the 230 MB `claude` binary shipped in @anthropic-ai/claude-agent-sdk-darwin-arm64, and @electron/universal rejected it as an arch-specific Mach-O that is identical in the x64 and arm64 builds. The app never uses that bundled binary: the chat backend always passes the user's installed Claude CLI as pathToClaudeCodeExecutable, and the SDK only resolves its platform package when that option is missing. Exclude the platform packages from the build so the universal merge succeeds and every installer shrinks by the size of the unused binary. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01LX4gRg9cK6vehbMC7o8kej --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5375de83..179f29f3 100644 --- a/package.json +++ b/package.json @@ -146,7 +146,8 @@ "dist-electron/**/*", "dist-remote/**/*", "electron/preload.cjs", - "electron/browser-preload.cjs" + "electron/browser-preload.cjs", + "!**/node_modules/@anthropic-ai/claude-agent-sdk-*/**" ], "asarUnpack": [ "**/node-pty/**",