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

keytar.node is not a valid win32 application #402

Open
antiochtech opened this issue Jul 15, 2021 · 4 comments
Open

keytar.node is not a valid win32 application #402

antiochtech opened this issue Jul 15, 2021 · 4 comments

Comments

@antiochtech
Copy link

antiochtech commented Jul 15, 2021

project built on ubuntu 18 x64 for win32 x64 with keytar v7.7.0.

works great on linux x64. but this is all i get on win32 x64.

Screenshot from 2021-07-14 20-05-58

@sergiou87
Copy link
Collaborator

Is it possible your project included the linux binary for the win32 build?

If you have Git Bash or something like that on Windows, you can run file /path/to/your/project/keytar.node and it will tell you what was it built for.

@antiochtech
Copy link
Author

i'd say youre right. project/node_modules/keytar/bin only includes a linux-x64-89 directory. seems i need to figure out how to npm install for other platforms/architectures?

@antiochtech
Copy link
Author

kinda surprised theres no progress on this?

@akirataguchi115
Copy link

My file /path/to/your/project/keytar.node command showed me x86-64 at first. Then I electron:builder'ed it for windows. The file outputted 80386.

I solved the issue by deleting node_modules and npm install again. The file now outputs x86-64 but it works now fine.

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

No branches or pull requests

3 participants