How do I build for Windows when I have sqlite3 as a dependency? (please read) #837
Unanswered
ionutcatana
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've set my project up with
npm create @quick-start/electron@latest
I've set up Wine & Mono on my GNU/Linux host, and
npm run build:win
worked perfectly to create Windows installers.I added the sequelize and sqlite packages and I implemented my logic. I added
- node_modules/sqlite3/**/*
underasarUnpack:
to make sure the native dependencies located atnode_modules/sqlite3/build/Release/
would not be packed.No matter what I do, if I run
npm run build:win
on a Linux host, the file node_modules/sqlite3/build/Release/node_sqlite3.node will be an ELF executable incompatible with the Windows target. Only when I run the same command on Windows, I get the needed PE executable.What do I need to do?

Beta Was this translation helpful? Give feedback.
All reactions