-
-
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
fix: cross-platform build for native modules using prebuild #7465
Conversation
The `rebuild()` method has not been passing the platform to the electron-rebuild, which meant, electron-rebuild has been using the `process.platform` no matter what platform you specify, which means no cross-platform build if an app includes native modules that include prebuilt binaries.
|
✅ Deploy Preview for car-park-attendant-cleat-11576 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Attempting to reimplement this via #7629 |
@cocktailpeanut can you try |
@mmaietta I tried using 24.5.2 and set npmRebuild at true but it ain't working as previous versions of electron builder. Previously I used electron-builder version=23.6.0. Rebuilding native dependencies and install prebuilt binary are the missing lines in my electron-builder output. Currently this is blocking me to upgrade from 23 to 24. |
@willemdjong please create a Issue ticket, tag me, and we can consolidate our convo there. I'll need a minimum reproducible repo of the project to test with as well |
The
rebuild()
method has not been passing the platform to the electron-rebuild.This means electron-builder has been using the
process.platform
no matter what platform you specify, which means no cross-platform build if an app includes native modules that include prebuilt binaries.Combined with the fix for
@electron/rebuild
at electron/rebuild#1072 I have confirmed that now I can successfully build using electron-builder for ALL platforms using the correct native built binaries.