diff options
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/package-lock.json | 1 | ||||
| -rw-r--r-- | gui/package.json | 1 | ||||
| -rw-r--r-- | gui/tasks/distribution.js | 22 |
3 files changed, 1 insertions, 23 deletions
diff --git a/gui/package-lock.json b/gui/package-lock.json index 47d1447d57..dc8686cd42 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -25,7 +25,6 @@ "styled-components": "^6.1.0" }, "devDependencies": { - "@electron/notarize": "^2.1.0", "@playwright/test": "^1.41.1", "@types/chai": "^4.3.3", "@types/chai-as-promised": "^7.1.5", diff --git a/gui/package.json b/gui/package.json index 92093b842d..75892af5ce 100644 --- a/gui/package.json +++ b/gui/package.json @@ -31,7 +31,6 @@ "nseventmonitor": "^1.0.4" }, "devDependencies": { - "@electron/notarize": "^2.1.0", "@playwright/test": "^1.41.1", "@types/chai": "^4.3.3", "@types/chai-as-promised": "^7.1.5", diff --git a/gui/tasks/distribution.js b/gui/tasks/distribution.js index 7087d71301..ada829057b 100644 --- a/gui/tasks/distribution.js +++ b/gui/tasks/distribution.js @@ -2,7 +2,6 @@ const path = require('path'); const fs = require('fs'); const builder = require('electron-builder'); const { Arch } = require('electron-builder'); -const { notarize } = require('@electron/notarize'); const { execFileSync } = require('child_process'); const noCompression = process.argv.includes('--no-compression'); @@ -88,6 +87,7 @@ const config = { artifactName: 'MullvadVPN-${version}.${ext}', category: 'public.app-category.tools', icon: distAssets('icon-macos.icns'), + notarize: shouldNotarize, extendInfo: { LSUIElement: true, NSUserNotificationAlertStyle: 'banner', @@ -315,11 +315,6 @@ function packMac() { return Promise.resolve(); }, afterAllArtifactBuild: async (buildResult) => { - if (shouldNotarize) { - // buildResult.artifactPaths[0] contains the path to the pkg. - await notarizeMac(buildResult.artifactPaths[0]); - } - // Remove the folder that contains the unpacked app. Electron builder cleans up some of // these directories and it's changed between versions without a mention in the changelog. for (const dir of appOutDirs) { @@ -331,26 +326,11 @@ function packMac() { afterSign: (context) => { const appOutDir = context.appOutDir; appOutDirs.push(appOutDir); - - if (shouldNotarize) { - const appName = context.packager.appInfo.productFilename; - return notarizeMac(path.join(appOutDir, `${appName}.app`)); - } }, }, }); } -function notarizeMac(notarizePath) { - console.log('Notarizing ' + notarizePath); - return notarize({ - appBundleId: config.appId, - appPath: notarizePath, - keychain: process.env.NOTARIZE_KEYCHAIN, - keychainProfile: process.env.NOTARIZE_KEYCHAIN_PROFILE, - }); -} - function packLinux() { if (noCompression) { config.rpm.fpm.unshift('--rpm-compression', 'none'); |
