Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can separate 32 and 64 bit Windows versions be created? #3293

Closed
JohannRosenberg opened this issue Sep 3, 2018 · 12 comments
Closed

Can separate 32 and 64 bit Windows versions be created? #3293

JohannRosenberg opened this issue Sep 3, 2018 · 12 comments
Labels

Comments

@JohannRosenberg
Copy link

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?

@JohannRosenberg JohannRosenberg changed the title Can both a 32 and 64 bit Windows version be created? Can separate 32 and 64 bit Windows versions be created? Sep 3, 2018
@ozooner
Copy link

ozooner commented Sep 3, 2018

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

@tzarebczan
Copy link

So the only option is to run the builder twice, one time with each option? Will autoupdater know which file to download automatically?

@marceloch2
Copy link

I have the same doubt as @tzarebczan . Will the update know which version to download?

@apascualm
Copy link

me too, I join the doubt.

1 similar comment
@iahmedani
Copy link

me too, I join the doubt.

@BrightSoul
Copy link

Should I join the doubt? Yes, I join the doubt too.

@marceloch2
Copy link

marceloch2 commented Jun 5, 2019

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?

@HemalR
Copy link

HemalR commented Jun 13, 2019

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

@HemalR
Copy link

HemalR commented Jun 14, 2019

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

@stale
Copy link

stale bot commented Aug 13, 2019

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.

@stale stale bot added the backlog label Aug 13, 2019
@stale stale bot closed this as completed Aug 20, 2019
@hahouari
Copy link

hahouari commented Apr 27, 2020

If anyone is still looking for a solution, I posted a workaround on medium, hope it helps somebody.

@complabs28
Copy link

If anyone is still looking for a solution, I posted a workaround on medium, hope it helps somebody.

I cannot see the Gist Package.json Codes Embedded in the Post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants