It isn't clear from the docs whether electron builder lets you create separate 32 and 64 bit versions. I have seen that the nsis target creates a single combined 32/64 bit version. Seems like overkill considering the massive install size just for one version alone. If it is possible, how do you do this? Is this done in the package.json file or from the command line or both?
It's quite clear in the docs:
https://www.electron.build/configuration/nsis#32-bit-64-bit
--ia32
for only 32bit
--x64
for only 64bit
So the only option is to run the builder twice, one time with each option? Will autoupdater know which file to download automatically?
I have the same doubt as @tzarebczan . Will the update know which version to download?
me too, I join the doubt.
me too, I join the doubt.
Should I join the doubt? Yes, I join the doubt too.
No, it will not work, just tested here, installed a 32 bits and upload to the Updater server an "electron-builder build --win --x64 version, the 32bits machines get the update and stuck with 64 bits message.
Any news folks?
Can confirm - all our users on a 32 bit machine get stuck in a loop, being told that an update has been downloaded but no installation happens when they click on 'restart' and we then have to manually walk them through re-downloading and reinstalling the program
Right, did an experiment by replacing this command:
build --mac --win -p always
With this one:
build --mac --win --x64 --ia32 -p always
And thus far it seems that that fixes things. I.e. -Updates work automatically for both 32 and 64 bit machines.
I also updated electron to 5.0 and electron builder to 20.41.0 during this change as other potential variables that may have had this effect... Just putting this out there...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If anyone is still looking for a solution, I posted a workaround on medium, hope it helps somebody.
Most helpful comment
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.