aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-04-16 06:11:19 -0600
committerLibravatar GitHub <noreply@github.com>2024-04-16 12:11:19 +0000
commit33b965363150ea10965bf82cd54ad38c2cf213b8 (patch)
tree26ee408e5fe8cf776f1ed0a88058830163873f82
parentUpgrade electron to '30.0.0' (diff)
downloadferdium-app-33b965363150ea10965bf82cd54ad38c2cf213b8.tar.gz
ferdium-app-33b965363150ea10965bf82cd54ad38c2cf213b8.tar.zst
ferdium-app-33b965363150ea10965bf82cd54ad38c2cf213b8.zip
chore: upgrade `@electron/notarize` to v2 (#1687)
* chore: upgrade @electron/notarize to v2 - remove redundant `appBundleId` and provide fallback for `appleId` and `appleIdPassword` - replace `ts-ignore` with `eslint-disable` in notarize.js - Explicitly disable electron-builder notarizing Co-authored-by: Alphrag <34252790+Alphrag@users.noreply.github.com>
-rw-r--r--build-helpers/notarize.js7
-rw-r--r--electron-builder.yml1
-rw-r--r--package.json2
-rw-r--r--pnpm-lock.yaml13
4 files changed, 12 insertions, 11 deletions
diff --git a/build-helpers/notarize.js b/build-helpers/notarize.js
index 32faa97b8..e3fece0b3 100644
--- a/build-helpers/notarize.js
+++ b/build-helpers/notarize.js
@@ -11,15 +11,14 @@ exports.default = async function notarizing(context) {
11 11
12 const appName = context.packager.appInfo.productFilename; 12 const appName = context.packager.appInfo.productFilename;
13 13
14 // @ts-ignore global-require 14 // eslint-disable-next-line global-require
15 const { notarize } = require('@electron/notarize'); 15 const { notarize } = require('@electron/notarize');
16 16
17 await notarize({ 17 await notarize({
18 tool: 'notarytool', 18 tool: 'notarytool',
19 appBundleId: 'org.ferdium.ferdium-app',
20 appPath: `${appOutDir}/${appName}.app`, 19 appPath: `${appOutDir}/${appName}.app`,
21 teamId: '55E9FPJ93P', 20 teamId: '55E9FPJ93P',
22 appleId: process.env.APPLEID, 21 appleId: process.env.APPLEID || '',
23 appleIdPassword: process.env.APPLEID_PASSWORD, 22 appleIdPassword: process.env.APPLEID_PASSWORD || '',
24 }); 23 });
25}; 24};
diff --git a/electron-builder.yml b/electron-builder.yml
index ba76bfde1..ad12c7e5a 100644
--- a/electron-builder.yml
+++ b/electron-builder.yml
@@ -70,6 +70,7 @@ mac:
70 entitlements: "./build-helpers/entitlements.mas.plist" 70 entitlements: "./build-helpers/entitlements.mas.plist"
71 entitlementsInherit: "./build-helpers/entitlements.mas.inherit.plist" 71 entitlementsInherit: "./build-helpers/entitlements.mas.inherit.plist"
72 artifactName: "${productName}-${os}-bundle-${version}-${arch}.${ext}" 72 artifactName: "${productName}-${os}-bundle-${version}-${arch}.${ext}"
73 notarize: false
73 target: 74 target:
74 - target: dmg 75 - target: dmg
75 arch: [x64, arm64] 76 arch: [x64, arm64]
diff --git a/package.json b/package.json
index 291f84c79..e39cace3b 100644
--- a/package.json
+++ b/package.json
@@ -135,7 +135,7 @@
135 "@biomejs/biome": "1.6.1", 135 "@biomejs/biome": "1.6.1",
136 "@commitlint/cli": "19.2.1", 136 "@commitlint/cli": "19.2.1",
137 "@commitlint/config-conventional": "19.1.0", 137 "@commitlint/config-conventional": "19.1.0",
138 "@electron/notarize": "1.2.3", 138 "@electron/notarize": "2.3.0",
139 "@formatjs/cli": "6.2.9", 139 "@formatjs/cli": "6.2.9",
140 "@jest/types": "29.6.3", 140 "@jest/types": "29.6.3",
141 "@types/auto-launch": "5.0.5", 141 "@types/auto-launch": "5.0.5",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index be8a320ea..e88ccd691 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -268,8 +268,8 @@ devDependencies:
268 specifier: 19.1.0 268 specifier: 19.1.0
269 version: 19.1.0 269 version: 19.1.0
270 '@electron/notarize': 270 '@electron/notarize':
271 specifier: 1.2.3 271 specifier: 2.3.0
272 version: 1.2.3 272 version: 2.3.0
273 '@formatjs/cli': 273 '@formatjs/cli':
274 specifier: 6.2.9 274 specifier: 6.2.9
275 version: 6.2.9 275 version: 6.2.9
@@ -1431,18 +1431,19 @@ packages:
1431 transitivePeerDependencies: 1431 transitivePeerDependencies:
1432 - supports-color 1432 - supports-color
1433 1433
1434 /@electron/notarize@1.2.3: 1434 /@electron/notarize@2.2.1:
1435 resolution: {integrity: sha512-9oRzT56rKh5bspk3KpAVF8lPKHYQrBnRwcgiOeR0hdilVEQmszDaAu0IPCPrwwzJN0ugNs0rRboTreHMt/6mBQ==} 1435 resolution: {integrity: sha512-aL+bFMIkpR0cmmj5Zgy0LMKEpgy43/hw5zadEArgmAMWWlKc5buwFvFT9G/o/YJkvXAJm5q3iuTuLaiaXW39sg==}
1436 engines: {node: '>= 10.0.0'} 1436 engines: {node: '>= 10.0.0'}
1437 dependencies: 1437 dependencies:
1438 debug: 4.3.4(supports-color@5.5.0) 1438 debug: 4.3.4(supports-color@5.5.0)
1439 fs-extra: 9.1.0 1439 fs-extra: 9.1.0
1440 promise-retry: 2.0.1
1440 transitivePeerDependencies: 1441 transitivePeerDependencies:
1441 - supports-color 1442 - supports-color
1442 dev: true 1443 dev: true
1443 1444
1444 /@electron/notarize@2.2.1: 1445 /@electron/notarize@2.3.0:
1445 resolution: {integrity: sha512-aL+bFMIkpR0cmmj5Zgy0LMKEpgy43/hw5zadEArgmAMWWlKc5buwFvFT9G/o/YJkvXAJm5q3iuTuLaiaXW39sg==} 1446 resolution: {integrity: sha512-EiTBU0BwE7HZZjAG1fFWQaiQpCuPrVGn7jPss1kUjD6eTTdXXd29RiZqEqkgN7xqt/Pgn4g3I7Saqovanrfj3w==}
1446 engines: {node: '>= 10.0.0'} 1447 engines: {node: '>= 10.0.0'}
1447 dependencies: 1448 dependencies:
1448 debug: 4.3.4(supports-color@5.5.0) 1449 debug: 4.3.4(supports-color@5.5.0)