Keytar + Electron: Works on OSX, "Error: %1 is not a valid Win32 application" on Windows #39
Description
I added Keytar to my Electron app and ran electron-rebuild on it. After packaging the resulting app works just fine on OSX, but when I try to run the .exe on windows I get the dreaded:
"Error: %1 is not a valid Win32 application"
I read that this might be due to the module being built for x64 which makes it not run on an ia32 environment.
So I installed node-gyp and rebuilt the module using:
HOME=~/.electron-gyp node-gyp rebuild --target=0.36.2 --arch=ia32 --dist-url=https://atom.io/download/atom-shell
It built fine but I got the same result after packaging the app for win32.
Is there any way to get this running on a 32-bit windows environment? Am I doing something wrong when in rebuilding step?
I can see that keytar is at least included inside the app folder after packaging. Is there a way to tell what architecture keytar was built for?
Thanks in advance for any help.