-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-pre-gyp stripped in packed dir #1815
Comments
partial 'build' fragment:
Aside from node-pre-gyp missing from built package dir, the other modules are still being placed in app.asar as well as app.asar.unpacked. |
Ok, I have now discovered that your packing logic strips out sub node_modules. I would have to spend a lot of time tracing through electron-builder code to understand what is happening, @develar can you please provide a summary of what you think and how to fix this? |
Thanks for using prerelease, node-pre-gup is filtered out because not required for production. Yeah, I will check why sql requires it. |
This is top the of main file for sqlite3, no way to avoid it.
|
Ok, |
Thanks! |
Fixed in 19.15.5 |
Works great, thanks @develar for the super awesome quick fix. |
node_modules/node-pre-gyp is being stripped from the built dir win-unpacked
I have tried placing 'node_modules/node-pre-gyp' into asarUnpack, but it is still missing from app.asar.unpacked and app.asar.
It is required by module 'sqlite3'.
Other modules I specify in asarUnpack are placed in app.asar.unpacked.
The text was updated successfully, but these errors were encountered: