question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: `electron-rebuild` plugin to use with afterCopy

See original GitHub issue

Currently 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:closed
  • Created 7 years ago
  • Comments:28 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
reconbotcommented, May 17, 2016

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 the preinstall hook, and save them in a common location. The other major prebuilt binary package manager prebuild 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.

1reaction
unindentedcommented, Feb 26, 2017

@malept could you add instructions on how to make the two packages work together nicely?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found