electron osx build improvements: add notarize support, move build assets to build, add osx security entitlements

This commit is contained in:
Ilya Kreymer
2020-05-20 16:27:17 -07:00
parent 1a2f2c00a2
commit 0b21581836
8 changed files with 56 additions and 9 deletions
+10 -6
View File
@@ -20,6 +20,7 @@
"css-loader": "^3.5.3",
"electron": "^9.0.0",
"electron-builder": "^22.6.1",
"electron-notarize": "^0.3.0",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.14.0",
"raw-loader": "^4.0.1",
@@ -41,9 +42,10 @@
"build-electron": "yarn run build && yarn run pack"
},
"build": {
"afterSign": "notarize.js",
"productName": "ReplayWeb.page",
"asar": true,
"appId": "org.webrecorder.page.replayweb",
"appId": "net.webrecorder.replaywebpage",
"artifactName": "${name}-${version}.${ext}",
"files": [
"!**/node_modules/**/*",
@@ -55,12 +57,14 @@
"extraResources": [
"plugins"
],
"dmg": {
"icon": "assets/icon.icns"
},
"dmg": {},
"mac": {
"category": "public.app-category.utilities",
"target": "dmg"
"target": "dmg",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist"
},
"linux": {
"category": "Archiving;Utility;",
@@ -72,7 +76,7 @@
"target": "portable"
},
"directories": {
"buildResources": "assets",
"buildResources": "build",
"output": "dist"
},
"fileAssociations": [