Remove OS from electron-builder CLI
See original GitHub issueIs there a reason we specify the OS for electron-builder in package.json
? I believe electron-builder should detect the OS it is building for by default. It’s a bit cumbersome to remember to add electron:windows, electron:mac etc. when building cross-platform, especially using a CI tool.
I’d propose merging all three to:
"electron:build": "npm run build:prod && electron-builder build",
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Common Configuration - electron-builder
Most of the options accept null — for example, to explicitly set that DMG icon must be default volume icon from the OS...
Read more >dist by default and remove this flag in favour of --target=dir #413
i.e. by default we will build in distributable format. Hide --platform flag (we cannot remove to be compatible with electron-packager, so, we ...
Read more >How should I write custom install and uninstall nsis for ...
In my understanding it will done if I spcified the installation path which is C:\Windows\BSD but when I uninstall my app the installation...
Read more >Packaging and distributing Electron applications using ...
electron -builder is a CLI tool that helps us create multi-platform distributions for Electron applications. It supports macOS, Windows, and ...
Read more >Options | electron-packager
Walks the node_modules dependency tree to remove all of the packages specified in the devDependencies section of package.json from the outputted Electron app....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Merged on master branch.
Hi @Lazza
You can still make cross-build with the commands below
npm run electron:build -- --windows
npm run electron:build -- --mac
npm run electron:build -- --linux