Request: `electron-rebuild` plugin to use with afterCopy
See original GitHub issueCurrently when packaging cross-arch native node modules I am having to wrap my electron-packager
calls with electron-rebuild
spawn promise magic ✨
An optimum solution to this issue would be for electron-packager
to support a rebuildNativeModules
option that would call electron-rebuild
while packaging and pass in the correct arch
and version
parameters.
Example of how to use electron-rebuild
can be found in their README and in the cli.js
I’m happy to attempt a PR for this if it is a feature that you guys feel should be part of electron-packager
Issue Analytics
- State:
- Created 7 years ago
- Comments:28 (23 by maintainers)
Top Results From Across the Web
Configuration - Electron Forge
The top level property rebuildConfig on the configuration object maps directly to the options sent to electron-rebuild during both the package and start...
Read more >Bountysource
Request : `electron-rebuild` plugin to use with afterCopy. ... Help and Information. Frequently Asked Questions · Bugs and Feature Requests · Fees ...
Read more >npm rebuild, electron-rebuild doesn't use special parameters
I have an electron/React app running. So after I install all packages I have to execute electron-rebuild so there are no version issues....
Read more >electron-rebuild - npm Package Health Analysis - Snyk
Electron supporting package to rebuild native node modules against the currently installed electron For more information about how to use this package see ......
Read more >Electron-rebuild: Package to Rebuild Native Node.js Modules Against
This allows you to use native Node.js modules in Electron apps without your ... electron-rebuild provides a function compatible with the afterCopy hook...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you take a project like node-serialport, I precompile binaries for all platforms and arch’s. I use
node-pre-gyp
to distribute them in thepreinstall
hook, and save them in a common location. The other major prebuilt binary package managerprebuild
will do the same. Each platform would need the file replaced (not the default behavior) before the package is rebuilt.I’d gladly work to make the electron precompiled binaries available if they could be used with electron packager.
@malept could you add instructions on how to make the two packages work together nicely?