Notarization: Update electron-notarize and start using notarytool
This commit is contained in:
parent
ff87caf526
commit
dad4fffb4e
3 changed files with 16 additions and 6 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue