We also need to add what version of electron to package the app with. Setting productname and electron versionĮlectron packager looks for a product name in package.json, so lets go ahead and add one. Run these commands in the terminal in the app folder: # for use in npm scripts “Electron Packager is a command line tool and Node.js library that bundles Electron-based application source code with a renamed Electron executable and supporting files into folders ready for distribution.” Install Electron packagerĮlectron packager is created by electron-userland and this is what they say about it: Just look at that repo if you want to see all the code. I add this code to the Electron tutorial app on github.
This is also a continuation of the Electron app icon post, so start there if you haven’t read it (It’s short, i promise). In this electron packager tutorial we will look at how to create MacOS, Windows and Linux executables with an app icon.