Skip to content

Commit 7bfa57b

Browse files
authored
Merge pull request #806 from complexdatacollective/fix/notarize-notarytool
Fix/notarize notarytool
2 parents f8af559 + b36a988 commit 7bfa57b

File tree

4 files changed

+364
-351
lines changed

4 files changed

+364
-351
lines changed

build-resources/scripts/afterSignHook.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const fs = require('fs');
44
const path = require('path');
5-
const electronNotarize = require('electron-notarize');
5+
const electronNotarize = require('@electron/notarize');
66

77
async function note(params) {
88
// Only notarize the app on Mac OS only.
@@ -20,16 +20,19 @@ async function note(params) {
2020

2121
try {
2222
await electronNotarize.notarize({
23+
tool: 'notarytool',
2324
appBundleId: 'NetworkCanvasArchitect',
2425
appPath,
25-
appleId: 'developers@coda.co',
26-
appleIdPassword: '@keychain:AC_PASSWORD',
26+
appleApiKey: '~/.private_keys/AuthKey_J58L47W6H9.p8',
27+
appleApiKeyId: 'J58L47W6H9', // This is taken from the filename of the .p8 file in your icloud drive
28+
appleApiIssuer: '69a6de92-60bf-47e3-e053-5b8c7c11a4d1',
2729
});
30+
31+
console.log('Done notarizing Architect');
2832
} catch (error) {
2933
console.error(error);
3034
}
3135

32-
console.log('Done notarizing Architect');
3336
}
3437

3538
module.exports = note;

network-canvas

package-lock.json

Lines changed: 92 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)