question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove OS from electron-builder CLI

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
maximegriscommented, Jun 21, 2020

Merged on master branch.

1reaction
maximegriscommented, Aug 4, 2020

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
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found