When ready for distribution, your electron app can be packaged into an executable file.
Electron applications can be packaged to run on Windows (32/64 bit), OSX (macOS) and Linux (x86/x86_64).
To package your code, use the npm package 'electron-packager\
Parameter | Details |
---|---|
sourcedir | The directory of your electron application files |
appname | The name of your application |
platform | The platform you want to compile your code for. Omitting this will compile for the host OS |
arch | The system architecture you want to compile your code for. Omitting this will compile for the host arch |