You'll end up with the package at dist/installers/app-0.0.1-setup.exe. If you want to run electron-installer-windows straight from the command-line, install the package globally: $ npm install -g electron-installer-windowsĪnd point it to your built app: $ electron-installer-windows -src dist/app-win32-圆4/ -dest dist/installers/ How do you turn that into a Windows package that your users can install? Command-Line app -platform win32 -arch 圆4 -out dist/Īnd you end up with something like this in your dist folder. You now run electron-packager to build the app for Windows: $ electron-packager. Say your Electron app lives in path/to/app and has a structure like this. Installationįor use from command-line: $ npm install -g electron-installer-windowsįor use in npm scripts or programmatically: $ npm install -save-dev electron-installer-windows Usage msi installer you'll need to run on Windows. I'd recommend building your packages on your target platform, but if you have to run this on Mac OS X or Linux, you will need to install mono and wine through your package manager. Gotta give credit where credit is due, ya know. This tool relies on the awesome Squirrel.Windows framework written by It takes care of creating the actual package, signing it, dealing with updates, and many more things. Create a Windows package for your Electron app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |