Search code examples
javascriptnode.jsbuildelectronelectron-forge

Electronforge build app for other platform


I'm currently building a cross platform app with electron(-forge) for mac, linux and windows. I'm on mac and with npm run make the app gets packaged and built for mac.

Is there any way (flag in build command or something) to build the app on mac for linux and windows as well?

Thank you in advance for any help!


Solution

  • try execute the command with parameter:

    npm run make -- --platform win32
    npm run make -- --platform linux
    npm run make -- --platform darwin