keytar.node is not a valid Win32 application and other errors #153
Comments
@AstroGD which version of Electron are you using? |
3.0.10 |
Ah I see - Theres a major update out that I didn't notice. I'll install this update and try if it works then |
Okay does not seem to help at all. Im now at Electron Version 3.1.2 - Version 4. seems not to work atm |
@shiftkey I got my Application now running on Electron 4.0.3 - Still not working |
It's really hard to say what's happening without a runnable example, but I suspect something is incorrectly choosing a 64-bit version of the binary and the 32-bit OS is not able to run it. |
Im preparing a runnable example. It just needs some time. Will send it asap |
I'm seeing this problem too with the |
As I expected this issue has now been fixed in my case. |
Testing that on my app tomorrow. Runnable example did encounter some unexpected issues - Still trying to get that done |
Oh my god finally - Its now working as intended! Thank you very much for sharing your solution @rvanmil 1.: Im running at keytar 4.4.0 and electron 4.0.4 I dont know what caused the errors but finally I have a finished and working App. And maybe you should remove some electron versions from your prebuild command as one is clearly not working and I am getting the following error: Which translates to: "Invalid file or disk full: positioning to 0x280166 not possible" So I guess this issue can now be closed? |
So Im closing this now as in my case my initial problem has been resolved. Thanks to everyone for the help |
Hey guys, I am encountering the following error:
I am trying to make an electron application using keytar.
Installing the module and then Packaging the App results in this error even when the app is not packaged: A dynamic link library (DLL) initialization routine failed.
I tried running prebuild-electron - no fix.
To fix this issue I needed ro run .\node_modules.bin\electron-rebuild -w keytar -p -f first and then I am able to test my program without packaging it.
Packaging it leaves this error:
Then I tried npm run prebuild-electron-ia32 with success.
Trying to run the application without packaging it results in this error: Error: \?\Filesystem\Dev\Electron\Proxy\app\node_modules\keytar\build\Release\keytar.node is not a valid Win32 application.
Packaging it then results in the following: Program works as intended except the keytar part (Storing, deleting and reading the credentials) does not work. It does not give an error or something, it just doesnt work...
For packaging I am using the following command:
electron-packager . --overwrite --asar --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out="../release-builds" --version-string.CompanyName="Author" --version-string.FileDescription="Description" --version-string.ProductName="Name"
I tried everything I could searching in older issues for a solution, but I could not find one.
Do you know what could have happened and how to fix it?
Thanks for helping
The text was updated successfully, but these errors were encountered: