-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Option to Disable Combined NSIS Installer When Building for Multiple Architectures #8298
Comments
So I must admit I don't have the original insight as to why the installers are always combined. I had a project in the past where it was required to have two distinct installers, one for each bitness, though and I implemented an electron-builder script using the programmatic API. I think it looked something akin to the code below (just make sure your artifact name uses the
|
Sure we can do it by different approach like using command line to build them separately, but a simple option would be also nice 😄 |
+1 for having a config value for this. I'm building better-sqlite3 and it needs to be built once per architecture. The combined installer would take the last built better-sqlite3 which would fail for the other archs. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Revisiting this request. I'll see what I can do but the logic in NsisTarget is extremely complex 😅 |
Update: I've added a configuration property to allow disabling universal builds, but it's only available to The PR introduces a config property |
That
|
Would anyone be willing to test out this patch-package? I'm unable to test for arch combinations including Would also appreciate anyone trying to test out the updater logic, I'm still verifying that myself as well.
|
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Is there any progress? |
When building for both 32-bit and 64-bit architectures, Electron Builder creates separate installers for each architecture as well as a combined installer. Is there an option to disable the creation of this combined installer?
Currently, I can't find a way on the doc(https://www.electron.build/configuration/nsis#32-bit-64-bit) to only generate the separate 32-bit and 64-bit installers without also producing the combined one. It would be helpful to have an option like
nsis.disableCombinedInstaller: true
ornsis.enableCombinedInstaller: false
to prevent the creation of the combined installer when it's not needed.Thank you for your assistance.
The text was updated successfully, but these errors were encountered: