Skip to content

Commit

Permalink
update electron notarize package
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Apr 23, 2024
1 parent 0ecbdd7 commit b78c652
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 31 deletions.
9 changes: 4 additions & 5 deletions build-resources/scripts/afterSignHook.js
Expand Up @@ -5,11 +5,10 @@ const path = require('path');
const electronNotarize = require('@electron/notarize');

async function note(params) {
// Only notarize the app on Mac OS only.
// Only notarize the app on macOS.
if (process.platform !== 'darwin') {
return;
}
console.log('afterSign hook triggered', params);

const appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
if (!fs.existsSync(appPath)) {
Expand All @@ -23,9 +22,9 @@ async function note(params) {
tool: 'notarytool',
appBundleId: 'org.codaco.NetworkCanvasInterviewer6',
appPath,
appleApiKey: '~/.private_keys/AuthKey_J58L47W6H9.p8',
appleApiKeyId: 'J58L47W6H9', // This is taken from the filename of the .p8 file in your icloud drive
appleApiIssuer: '69a6de92-60bf-47e3-e053-5b8c7c11a4d1',
appleApiKey: '~/.private_keys/AuthKey_A78M67RCH9.p8',
appleApiKeyId: 'A78M67RCH9', // Taken from https://appstoreconnect.apple.com/access/integrations/api
appleApiIssuer: '69a6de92-60bf-47e3-e053-5b8c7c11a4d1',// As above
});

console.log('Done notarizing');
Expand Down
44 changes: 19 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -56,7 +56,7 @@
"@codaco/eslint-plugin-spellcheck": "0.0.14",
"@codaco/shared-consts": "~0.0.1-alpha.3",
"@codaco/ui": "~5.8.5",
"@electron/notarize": "~1.2.3",
"@electron/notarize": "~2.3.0",
"@faker-js/faker": "~6.0.0-alpha.5",
"@zippytech/sorty": "^2.0.0",
"ajv": "^6.5.4",
Expand Down

0 comments on commit b78c652

Please sign in to comment.