Build Electron application for MacOS (without MacOS?)
Jochem Stoel Jul 29
This seems like a good question to ask you guys here on dev.to
I advertise to my clients and pretty much anyone who will listen that with the right configuration(s) Node/Electron applications can easily be built for Windows, Linux and MacOS with zero changes in the actual code. (provided that the application has no operating system specific dependencies and other duh objections)
Building a Node application for all three platforms is pretty easy and I have done that a million times. Building my Electron app for Windows and Linux using the electron-builder is no rocket science either. In theory they should also run on MacOS. However I have never actually built an Electron app for MacOS. Mostly this is because I do not own an Apple computer (think I have never physically touched one), it doesn't seem to be possible on Windows and there is no way in hell my laptop will run it virtually.
The Black Eyed Peas asked if I can practice what I'm preachin' so I had a look online if I can maybe rent a VPS somewhere that runs MacOS, then figure out the rest using a form of remote desktop protocol. I did find some cloud solutions that offer MacOS VPS services but most of them are pricey and not worth the investment at this point. I just need a simple build server for compatibility testing and learning purposes, not because I need currently need it in the real world.
So. Dear Apple developers, how would I go about doing that? Preferably without spending $49/month on a VPS that is idle 99.99% of the time.