I am building an electron app that uses native dependencies targeting multiple platforms. Prebuild binaries are available for all of them.
However when npmSkipBuildFromSource is enabled, prebuild downloads the binary for the installed node version instead of the electron version. This can be easily handled by specifying a --abi=ELECTRON_ABI_VERSION argument, but electron-builder does not allow this.
--abi=$(electron --abi) automatically.@develar I'm happy to do a PR for this, just not right now, since #881 solves this for me. Might look again in a few weeks if no one else has taken it on.
Since prebuild v5.0.0+ it can prebuilt native modules against Electron headers and determines the ABI based on the --target and --runtime flags.
This makes it compatible with electron-builder. So this issue can be closed.
Most helpful comment
Since
prebuild v5.0.0+it can prebuilt native modules against Electron headers and determines the ABI based on the--targetand--runtimeflags.This makes it compatible with
electron-builder. So this issue can be closed.