Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

keytar.node is not a valid Win32 application and other errors #153

@AstroGD

Description

@AstroGD

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:
image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions