Compiling in Electron for both MacOS and Windows
I’m trying to compile a desktop app using Electron, currently I’m using W7, working good so far.
How can I compile the app for both Windows and MacOS? Thanks in advance!
dobbel last edited by
My guess, you can’t compile Mac Electron apps on non mac machines. Just like you can’t build IOS (cordova/native) apps on a Windows machine. But you can build Android apps on a mac.
I gave a read to Electron builder docs and it stays you’re able to build cross platform apps by using builder, and passing -mwl to the parameters or by passing flags.
You can also do the same with packager by passing the --platform=darwin flag to the command-line, I tried doing something like “quasar build -m electron – --platform=darwin” but it doesnt seem to work, also specified the platform on the packager options and it’s not working either, I’ll try looking deeper in the Electron docs for quasar for more info, if I have any luck I’ll be sure to post it here, but any help would be appreciated!
dobbel last edited by dobbel
@aestheticarepa You can use a VM to run MacOS and build a mac electron version…