I am trying to find out the difference between electron-builder and electron-rebuild for compiling native modules. Afaik there are these two options to compile my native module dependencies:
electron-builder
"Native application dependencies compilation (including Yarn support)."
% npm i
% npm run electron-builder install-app-deps
And there is electron-rebuild
This allows you to use native Node.js modules in Electron apps without your system version of Node.js matching exactly (which is often not the case, and sometimes not even possible).
% npm run electron-rebuild
Both result in a working binary of my dependency. I know electron-builder
is used for more, but why does electron-rebuild
exist if this can be done via electron-builder
as well? Thanks!