Electron-builder: Unable to build for ARM64

Created on 25 Jun 2020  路  7Comments  路  Source: electron-userland/electron-builder


  • Version: 22.7.0


  • Electron Version: 9.0.4
  • Electron Type (current, beta, nightly): Current

  • Target: All targets (ARM64)

I'm trying to produce arm64 artifacts for my app, for all platforms, from macOS 10.14, but the process gets stuck and never finishes, no error is outputted. I can only see the multipass process spinning forever from the task amanger.


mac

Most helpful comment

I believe the building process has hardcoded to be only building Arch.x64 for macOS right now.
https://github.com/electron-userland/electron-builder/blob/7b335dbd7e5ca754598ca93318be1404fc518485/packages/app-builder-lib/src/macPackager.ts#L103

Since Apple is about to release ARM-based Mac this year, we need to support building for ARM64.

All 7 comments

I believe the building process has hardcoded to be only building Arch.x64 for macOS right now.
https://github.com/electron-userland/electron-builder/blob/7b335dbd7e5ca754598ca93318be1404fc518485/packages/app-builder-lib/src/macPackager.ts#L103

Since Apple is about to release ARM-based Mac this year, we need to support building for ARM64.

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Still relevant.

Still relevant.

I like how the stupid bot just closes issues like that, shouldn't there be an issue tracking compatibility with Apple Silicon? @develar

Apple silicon launching at the end of the year, google resolved ARM64 issues, Upstream is going to have ARM64 builds for apple silicon soon. We should be tracking this one. Lots of electron builder apps have a lot of upgrade work to do to even open.

Just for posterity's sake and future readers, we probably should consolidate Apple Silicon/arm64 discussions in this ticket: https://github.com/electron-userland/electron-builder/issues/5392#issuecomment-725441867
An investigation is ongoing there.

@rankjie your pointer helped me a lot in my local patching. Thank you

Was this page helpful?
0 / 5 - 0 ratings