Reputation: 181
I have a Quasar / Electron application and I develop it on a MacBook with an Apple M1 Pro Chip. When I try to run it on my old Mac with an Intel chip, I get an error that says: "You can't open the application because this application is not supported on this Mac."
It runs fine on the Apple M1 Pro MacBook that it's built on.
So I've narrowed this error down to the X64 Mac cannot run the build I did on the Arm64 Mac.
Reading this post: Electron Apple Silicon Support, I'm attempting to integrate the Universal Option using Electron Packager. I'm doing this in the Quasar quasar.conf.js file, but I don't know what syntax I should be using.
What I have is the following:
packager: {
OsxUniversal: {
x64AppPath: '/Users/drive/Projects/Appx64.app',
arm64AppPath: '/Users/drive/Projects/AppArm64.app',
outAppPath: '/Users/drive/Projects/AppUniversal.app',
},
},
But that doesn't change what electron-packager is building, it just builds the same Arm64 application as it does when I do not use those criteria. Neither the X64 or the Universal apps are being built.
I am getting the OsxUniversalOptions from this page: Namespace electronPackager But since I'm using electrion-packager inside Quasar, I don't know if that is correct. Apparently it is not, because it's not working.
I would love some help with this. I need my application to be able to run on either the Intel or the Apple M1 Chip Macs.
Thanks.
Upvotes: 0
Views: 1048
Reputation: 3411
you an use Electron Builder:
builder: {
dmg: {
sign: false,
},
mac: {
target: [
{
target: "dmg",
arch: ["universal"],
},
],
}
}
Upvotes: 0