-
Notifications
You must be signed in to change notification settings - Fork 39
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
createDMG fails when running on m1 mac when running under x86_64 architecture #215
Comments
Duplicate of #131. Should be fixed as of v4.0.0. |
@erickzhao i fail to see how it's a duplicate. The issue you linked describes building an app for arm64. I, however, am trying to build an app under x86_64 architecture, but on an arm mac. So inside of node, the process.arch is x64 so it tries to execute with "openfolder" but fails since it's not available on arm macs. |
@adesko Ah I see, my apologies. Have you tried packaging your app for x64 and using Not immediately sure if there's anything platform-specific about the resulting DMG and I don't have an x64 Mac on me to test. |
@erickzhao unfortunately that didn't work |
@adesko, I'm not sure if you're still struggling with this. I ran into this today, and have a very stupid workaround for it I can share, in my build script:
The problem lies in |
I'm trying to build an app for x86_64 on m1 mac. I'm running the build scripts through the compatibility layer, so it looks like this
arch -86_64 /path/build_app.sh
I have different versions of node for arm and x86 installed, so this particular script is running with node for x86. So when the script is running, it detects the architecture as x86 and tries to run a command that is incompatible with arm Macs
Is there any way to avoid this error and build for x86 on an arm machine?
The text was updated successfully, but these errors were encountered: