Skip to content

fix(build): exclude Claude Agent SDK platform binaries from packaged app - #284

Merged
johannesjo merged 1 commit into
mainfrom
claude/parallel-code-ci-failure-iiul5z
Sep 19, 2026
Merged

johannesjo merged 1 commit into
mainfrom
claude/parallel-code-ci-failure-iiul5z

Conversation

@johannesjo

Copy link
Copy Markdown
Owner

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 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01LX4gRg9cK6vehbMC7o8kej

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LX4gRg9cK6vehbMC7o8kej
@johannesjo
johannesjo merged commit 390d475 into main Sep 19, 2026
2 checks passed
@johannesjo
johannesjo deleted the claude/parallel-code-ci-failure-iiul5z branch September 19, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants