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…
@aestheticarepa Have you figured out how to get it to work? I’m also wanting to build on my Mac for Windows. I have it working for my Mac and for the web, but I would love it to work for a windows exe too.
for macOS users first
brew install --cask wine-stablethan try
quasar build -m electron -T masmas can be
darwin, linux, mas, win32
also you can buy me a coffee @ Patreon
@diadal okay, I was hoping I didn’t have to install wine, thinking that was only necessary for icons. But I can install wine too.