-
-
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
electron-builder does not bundle the dependencies correctly in the build #7702
Comments
From my investigations I found this issue: Which had this comment trying to add https://github.com/electron/rebuild now hopefully that fixes it |
It's unclear how to actually integrate rebuild package into the process. I understand I have to somehow modify the dependency call to node-sqlite3 with rebuild but how is super unclear even after reading rebuild docs. |
This problem is likely caused by The current unfortunate kludge seems to be to throw all that |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. |
for electron-builder 25 or 25.0.4 |
I would expect something like post:install script, plugin or addon to build process. Maybe in pnpm or electron which not copy but maybe some additional work if required and not fully expose all the shit. there even could be option when building with exposing variables which setup this option or tell pnpm to post:install situation is required without manual intervention due electron build. Seem as pnpm(and its store) uses modified esbuild |
Trying to do build of app here:
https://github.com/learn-anything/electron-version
If git clone and
cd app
andpnpm run compile
which runs:electron-builder build --config .electron-builder.config.js --dir --config.asar=false
.electron-builder.config.js is config file.
It compiles
But when I try open the app from dist I see this:
I am not sure why but it seems that electron-builder is not bundling the node dependencies correctly for the build?
Thank you lots for any help.
The text was updated successfully, but these errors were encountered: