Notarization: Update electron-notarize and start using notarytool

This commit is contained in:
Scott Nonnenberg 2022-05-03 10:07:16 -07:00 committed by GitHub
parent ff87caf526
commit dad4fffb4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 6 deletions

View file

@ -47,15 +47,25 @@ export async function afterSign({
return;
}
const teamId = process.env.APPLE_TEAM_ID;
if (!teamId) {
console.warn(
'teamId must be provided in environment variable APPLE_TEAM_ID'
);
return;
}
console.log('Notarizing with...');
console.log(` primaryBundleId: ${appBundleId}`);
console.log(` username: ${appleId}`);
console.log(` file: ${appPath}`);
await notarize({
tool: 'notarytool',
appBundleId,
appPath,
appleId,
appleIdPassword,
teamId,
});
}