![]() The path to the folder that will contain your Windows installer. The path to the folder that contains your built Electron application. ConfigurationĮlectron-builder can be conveniently configured by adding a build section to the package.$ electron-installer-windows -src dist/app-win32-圆4/ -config config.jsonĪnyways, here's the full list of options: src You don't have to generate a package for all OSes, but let's see how to control that with electron-builder configuration. Running npm run dist will generate operating-system-specific packages, such as dmg, deb, or whatever you tell the configuration to generate, depending on which platform you're running this command.įor example, I'm running this on macOS, so it'll generate macOS-specific files for me. We will modify the package.json file from our first blog post Build a JavaScript Desktop app with Electron.įirst, you'll have to add the electron-builder package as a dev dependency: npm install -D electron-builderĪfter this, we will add one new script to our "scripts" section of package.json: "dist": "electron-builder"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |