Prevent electron-builder from adding native modules to asar on macOS (#4169)

Having native node modules packaged into the asar archive results in
them being unpacked and executed by electron when required by the app.
When macOS executes the unpacked native modules, it first sends requests
to Apple, and when the response is received or when the request times
out the module is loaded.
This commit is contained in:
Oskar Nyberg 2020-04-16 02:16:46 +02:00 committed by GitHub
parent c1dfe3e5b4
commit 8cda95c437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,6 +264,9 @@
"hardenedRuntime": true,
"entitlements": "./build/entitlements.mac.plist",
"icon": "build/icons/mac/icon.icns",
"asarUnpack": [
"**/*.node"
],
"publish": [
{
"provider": "generic",