9/1/2023 0 Comments Electron app installer![]() zulip-electron (two package.json) and onshape-desktop-shell (one package.json) are some real-world projects that use electron-builder for their packaging. On Linux - $ npm run dist |- appname-version.AppImage |- b |- linux-unpackedĮlectron-builder is highly configurable. Installing package Run this command in your terminal: npm install -save-dev electron-winstaller Setting up installer script Create a new file called createinstaller. On Windows - # When using target - Squirrel $ npm run dist |- win | |- REALESES | |- appnameSetupversion.exe | |- appname-version-full.nupkg |- win-unpacked # When using target - NSIS $ npm run dist |- win | |- appnameSetupversion.exe |- win-unpacked ![]() running it on OSX will create - $ npm run dist |- mac | |- appname-version-mac.zip | |- appname-version.dmg | |- appname.app By default build command will only generate the installer for current platform and current arch. ![]() To package your app into an installer use command: npm run dist You’ve successfully configured electron-builder. On windows build you can also use NSIS target which is the default one and recommended by electron-builder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |