Skip to content

build(mas): universal (x86_64 + arm64) App Store package#34

Merged
julia-kafarska merged 1 commit into
mainfrom
build/universal-mas
Jul 8, 2026
Merged

build(mas): universal (x86_64 + arm64) App Store package#34
julia-kafarska merged 1 commit into
mainfrom
build/universal-mas

Conversation

@julia-kafarska

Copy link
Copy Markdown
Member

The Mac App Store build was arm64-only, so it wouldn't run natively on Intel Macs (which App Store review may use). This makes the MAS build universal.

Changes

  • electron-builder.json: mas target → universal; add x64ArchFiles rule so @electron/universal keeps onnxruntime's per-arch dylibs as-is (they load by arch at runtime) instead of erroring on identical single-arch files.
  • scripts/build-universal-ffmpeg.mjs (new): ffmpeg-static ships a single host-arch binary; this fattens it into a universal binary before the build. Idempotent, macOS-only.
  • package.json: electron:build:mas runs the ffmpeg step and passes --universal.

Verification

npm run electron:build:mas produces Out Loud-2.1.0-universal.pkg, verified universal (x86_64 + arm64) across app/framework/helpers/ffmpeg/onnxruntime, signed with Apple Distribution + provisioning profile, App Sandbox on. verify:mas passes.

🤖 Generated with Claude Code

The Mac App Store build was arm64-only, so it wouldn't run natively on
Intel Macs (which App Store review may use). Make it universal:

- electron-builder: mas target -> universal; add an x64ArchFiles rule so
  @electron/universal keeps onnxruntime's per-arch dylibs as-is instead of
  failing on the identical single-arch files.
- scripts/build-universal-ffmpeg.mjs: fatten ffmpeg-static (ships a single
  host-arch binary) into a universal binary before the build. Idempotent,
  macOS-only.
- electron:build:mas: run the ffmpeg step and pass --universal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@julia-kafarska
julia-kafarska merged commit ea3ae11 into main Jul 8, 2026
1 check passed
@julia-kafarska
julia-kafarska deleted the build/universal-mas branch July 8, 2026 22:27
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.

1 participant