Closed DanielMcAssey closed 2 years ago
I have the same issue. I'm trying to build for x64 on a Mac m1, it succeeds but the executable it outputs is always for arm64.
@DanielMcAssey Did you find a way around this? For now I have to use a x64 Mac to build.
Unfortunately not yet, I am doing the same, using an x64 Mac to build. Makes our CI pipeline difficult
I think I recall this being an issue with app-builder-bin
as I had this issue as well. My way of resolving it was ironically utilizing electron-rebuild
instead. This is from my electron-builder.js
// force arch build if using electron-rebuild
beforeBuild: async (context) => {
const { appDir, electronVersion, arch } = context
await electronRebuild.rebuild({ buildPath: appDir, electronVersion, arch })
return false
},
nodeGypRebuild: false,
buildDependenciesFromSource: false,
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.
build native dependency from sources name=robotjs version=0.6.0 platform=darwin arch=x64 napi= reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information) error=prebuild-install info begin Prebuild-install version 5.3.6
I got the same issue, is there any way to solve this ?
@bbb169 try this approach? https://github.com/electron-userland/electron-builder/issues/6340#issuecomment-1027503443
Getting the following, packaging line says x64 arch, but then the build native dependency step uses arm64? I tseems like the arch is not getting passed correctly