Skip to content

fix: native module architecture mismatch in x64 builds#709

Merged
rabanspiegel merged 2 commits intomainfrom
emdash/706-7mp
Feb 2, 2026
Merged

fix: native module architecture mismatch in x64 builds#709
rabanspiegel merged 2 commits intomainfrom
emdash/706-7mp

Conversation

@rabanspiegel
Copy link
Contributor

@rabanspiegel rabanspiegel commented Feb 2, 2026

Fixes #706

The x64 mac build was getting arm64 native modules because we rebuilt all architectures first, then ran electron-builder with --x64 --arm64. The last rebuild (arm64) overwrote the x64 modules, so both builds used arm64 natives.

Now we build each architecture separately - rebuild native modules, then package, then move to the next arch.

Also added a CI step that verifies native module architectures match the Electron binary, so this can't regress.


Note

Medium Risk
Medium risk because it changes the macOS release workflow build order and adds new CI checks; misconfiguration could break or slow releases, but it’s isolated to CI packaging.

Overview
Fixes macOS x64/arm64 native module mismatches by building each architecture separately: for each selected arch, the workflow now runs @electron/rebuild for sqlite3, node-pty, and keytar, then packages via electron-builder (both unsigned and signed jobs).

Adds a post-build verification step that inspects each generated .app bundle and fails CI if the Electron binary or sqlite3 native module architecture doesn’t match the expected arch, preventing regressions like #706.

Written by Cursor Bugbot for commit 5ed47fa. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 2, 2026 3:32am

Request Review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@rabanspiegel rabanspiegel merged commit ad1268b into main Feb 2, 2026
4 checks passed
cschubiner pushed a commit to cschubiner/emdash that referenced this pull request Feb 2, 2026
…#709)

* fix: build each mac architecture separately to fix native module mismatch (generalaction#706)

* fix: fail verification if no app bundles found
@rabanspiegel rabanspiegel deleted the emdash/706-7mp branch February 2, 2026 23:06
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.

[bug]: Couldn't open my project ("Failed to Add Project"): incompatible architecture

1 participant