Skip to content

Commit 5fd0209

Browse files
committed
Require @electron/notarize instead of old electron-notarize
Also updates the call to comply with the new API.
1 parent 8d01909 commit 5fd0209

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

after_sign_hook.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ module.exports = async function (params) {
2929
console.log(`Notarizing ${appId} found at ${appPath}`); // eslint-disable-line no-console
3030

3131
try {
32-
const electron_notarize = require('electron-notarize');
32+
const electron_notarize = require('@electron/notarize');
3333
await electron_notarize.notarize({
34-
appBundleId: appId,
3534
appPath: appPath,
35+
// TODO: Move to using API key
3636
appleId: process.env.NOTARIZATION_ID,
3737
appleIdPassword: process.env.NOTARIZATION_PWD,
38-
ascProvider: 'AutomatticInc',
38+
teamId: '99KV9Z6BKV',
3939
});
4040
} catch (error) {
4141
console.error(error); // eslint-disable-line no-console

0 commit comments

Comments
 (0)