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:
parent
c1dfe3e5b4
commit
8cda95c437
1 changed files with 3 additions and 0 deletions
|
@ -264,6 +264,9 @@
|
|||
"hardenedRuntime": true,
|
||||
"entitlements": "./build/entitlements.mac.plist",
|
||||
"icon": "build/icons/mac/icon.icns",
|
||||
"asarUnpack": [
|
||||
"**/*.node"
|
||||
],
|
||||
"publish": [
|
||||
{
|
||||
"provider": "generic",
|
||||
|
|
Loading…
Reference in a new issue