Skip to content
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

How do I build a universal bundle on MacOS #7135

Closed
jrohlandt opened this issue Sep 13, 2022 · 1 comment
Closed

How do I build a universal bundle on MacOS #7135

jrohlandt opened this issue Sep 13, 2022 · 1 comment

Comments

@jrohlandt
Copy link

jrohlandt commented Sep 13, 2022

  • Electron-Builder Version:
    v23.3.3

  • Node Version:
    v16.17

  • Electron Version:
    18

  • Target:
    MacOS universal (arm64 and x64

This my build command:

"release:mac": "electron-builder -m --publish 'onTagOrDraft'",

On an Intel based mac this produces a universal bundle that can be installed on either Intel or M1 Macs.
But on a M1 mac it creates an arm64 bundle.

How do I modify it to create a universal bundle when running it on an M1 mac?

Sorry for posting here but I can't get an answer anywhere and I can't figure out what I need to do from the electron.build documentation site either.

@mmaietta
Copy link
Collaborator

#5689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants