-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building Apple Silicon (arm64 or universal) builds on Intel-based Mac #5689
Comments
Yes. Please search for previous issues first in the future. There's CLI approach using For build config, there is:
For universal builds, you can use: |
Added apple silicon universal support as mentioned here electron-userland/electron-builder#5689 to fix ganeshrvel#220
It works: "mac": {
"target": [
{
"target": "default",
"arch": [
"x64",
"arm64"
]
}
],
} If you want to auto update your Electron APP, you also need to upgrade electron-updater to 4.5.2 and electron-builder to 22.14.2 because this bug #6212. |
How does this work with native modules that need to support multiple architectures? Enabling `Installation error: 'darwin-x64' binaries cannot be used on 'darwin-arm64v8' platform. The prebuilt files exist for both architectures, but it doesn't seem like it works to rebuild as intended. If we skip the rebuild, then the app just quits unexpectedly when run after packaging. The actual error appears to match this issue: #4122 |
I think |
This is my bad, and sorry for wasting time. Apparently there was some discrepancy in the dependency's docs about which version started supporting |
Hello. I figured I'd post here instead of making a new issue. I'm trying to build my app as an universal package on macOS, but run into an issue with packaging external binaries. Our app relies on ffmpeg (and a few other things) and we include an ffmpeg binary with our app. I don't know how to build universal binaries for ffmpeg or others (I don't even know if it's possible) so I decided to get one for arm64 and one for x64 and named them accordingly. My app refers to either depending on However, when trying to use electron-builder, I see it starts with trying to build for both archs and merge them. But there's a lipo error like this :
As I understand it, that's because it took my Is there a way for me to tell electron-builder that binaries for an arch are in one folder and in another for the other arch? Or am I doing this wrong? Thanks in advance for your help. |
Okay, my bad, I didn't search for the right words and found some similar issues (like #5552). I'll look into these more. |
Just leaving this for those that are configuring this with YAML. i couldnt find an example anywhere
|
This commit introduces a universal binary format in the distributed MDG files for macOS, improving support for both Apple Silicon (ARM) and Intel (x64) architectures. It uses `electron-builder` to package both architectures into a single executable, ensuring the application can natively on any macOS hardware without depending on the GitHub runners' architecture. It fixes the issue related to prior releases that supported only the architecture of the build environment itself, which is subject to change. Changes: - Update DMG distribution to include both ARM64 and x64 architectures. - Enhance system requirements documentation to reflect support for both architectures. - Modify CI/CD workflows to check desktop runtime errors for both ARM64 and x64 versions on macOS. Resolves: - Issue #348: Initial request for Apple Silicon support. - Issue #362: Correction of distribution limited to ARM64 in release 0.13.3. `electron-builder` support: - electron-userland/electron-builder#5475 - electron-userland/electron-builder#5689 - electron-userland/electron-builder#5426
This commit introduces a universal binary format in the distributed MDG files for macOS, improving support for both Apple Silicon (ARM) and Intel (x64) architectures. It uses `electron-builder` to package both architectures into a single executable, ensuring the application can natively on any macOS hardware without depending on the GitHub runners' architecture. It fixes the issue related to prior releases that supported only the architecture of the build environment itself, which is subject to change. Changes: - Update DMG distribution to include both ARM64 and x64 architectures. - Enhance system requirements documentation to reflect support for both architectures. - Modify CI/CD workflows to check desktop runtime errors for both ARM64 and x64 versions on macOS. Resolves: - Issue #348: Initial request for Apple Silicon support. - Issue #362: Correction of distribution limited to ARM64 in release 0.13.3. `electron-builder` support: - electron-userland/electron-builder#5475 - electron-userland/electron-builder#5689 - electron-userland/electron-builder#5426
Can build for mac-arm64 on an intel mac?
The text was updated successfully, but these errors were encountered: