From 94a233a07de3b17e2ae8c3b475a419810498ff7b Mon Sep 17 00:00:00 2001 From: David Acosta Date: Mon, 28 Nov 2022 17:30:23 -0800 Subject: [PATCH] Notarization --- build/entitlements.mac.plist | 12 ++++++++++++ package.json | 1 + vue.config.js | 2 ++ yarn.lock | 27 +++++++++++++++++++++++++-- 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 build/entitlements.mac.plist diff --git a/build/entitlements.mac.plist b/build/entitlements.mac.plist new file mode 100644 index 00000000..1be02515 --- /dev/null +++ b/build/entitlements.mac.plist @@ -0,0 +1,12 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.allow-dyld-environment-variables + + + diff --git a/package.json b/package.json index 73ae6a47..531bb2ea 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "@vue/vue2-jest": "^27.0.0-alpha.2", "babel-jest": "^27.0.6", "electron": "^13.0.0", + "electron-builder-notarize": "^1.5.0", "electron-devtools-installer": "^3.1.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", diff --git a/vue.config.js b/vue.config.js index 7a2f694a..aecc9d98 100644 --- a/vue.config.js +++ b/vue.config.js @@ -22,6 +22,7 @@ module.exports = { output: "release", buildResources: "public", }, + afterSign: "electron-builder-notarize", dmg: { icon: false, contents: [ @@ -45,6 +46,7 @@ module.exports = { }] }, mac: { + hardenedRuntime: true, icon: "icons/icon.icns", category: "public.app-category.developer-tools", publish: [{ diff --git a/yarn.lock b/yarn.lock index 2afcd0ec..a7126979 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5052,6 +5052,11 @@ dotenv@^10.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== +dotenv@^8.2.0: + version "8.6.0" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.6.0.tgz#061af664d19f7f4d8fc6e4ff9b584ce237adcb8b" + integrity sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g== + dotenv@^9.0.2: version "9.0.2" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-9.0.2.tgz#dacc20160935a37dea6364aa1bef819fb9b6ab05" @@ -5122,6 +5127,16 @@ ejs@^3.1.7: dependencies: jake "^10.8.5" +electron-builder-notarize@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/electron-builder-notarize/-/electron-builder-notarize-1.5.0.tgz#ef17c3f0eac6b3908ff2bc3568aea6e4f8612b5b" + integrity sha512-kbVCnZX3pCKTXiPhyoMjCZYSQnwS04QmlTM2NB2D/2LCsab5UJA0Me9ZqDT3W35ENPglf1WYDKT+tx9i+xuaPA== + dependencies: + dotenv "^8.2.0" + electron-notarize "^1.1.1" + js-yaml "^3.14.0" + read-pkg-up "^7.0.0" + electron-builder@^22.2.0, electron-builder@^23.0.3: version "23.6.0" resolved "https://registry.yarnpkg.com/electron-builder/-/electron-builder-23.6.0.tgz#c79050cbdce90ed96c5feb67c34e9e0a21b5331b" @@ -5150,6 +5165,14 @@ electron-devtools-installer@^3.1.0: tslib "^2.1.0" unzip-crx-3 "^0.2.0" +electron-notarize@^1.1.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/electron-notarize/-/electron-notarize-1.2.2.tgz#ebf2b258e8e08c1c9f8ff61dc53d5b16b439daf4" + integrity sha512-ZStVWYcWI7g87/PgjPJSIIhwQXOaw4/XeXU+pWqMMktSLHaGMLHdyPPN7Cmao7+Cr7fYufA16npdtMndYciHNw== + dependencies: + debug "^4.1.1" + fs-extra "^9.0.1" + electron-osx-sign@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/electron-osx-sign/-/electron-osx-sign-0.6.0.tgz#9b69c191d471d9458ef5b1e4fdd52baa059f1bb8" @@ -7650,7 +7673,7 @@ js-tokens@^4.0.0: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^3.13.1: +js-yaml@^3.13.1, js-yaml@^3.14.0: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== @@ -9687,7 +9710,7 @@ read-config-file@6.2.0: json5 "^2.2.0" lazy-val "^1.0.4" -read-pkg-up@^7.0.1: +read-pkg-up@^7.0.0, read-pkg-up@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==