2021-03-19 09:51:08 +01:00
|
|
|
const { notarize } = require('electron-notarize')
|
|
|
|
|
|
|
|
exports.default = async function notarizing(context) {
|
|
|
|
const { electronPlatformName, appOutDir } = context
|
|
|
|
if (electronPlatformName !== 'darwin') {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
const appName = context.packager.appInfo.productFilename
|
|
|
|
|
|
|
|
return await notarize({
|
2021-10-02 06:40:01 +02:00
|
|
|
tool: 'notarytool',
|
2021-03-19 09:51:08 +01:00
|
|
|
appBundleId: 'org.whalebird.desktop',
|
2021-10-02 06:40:01 +02:00
|
|
|
ascProvider: 'HB4N6B2YVM',
|
2021-03-19 09:51:08 +01:00
|
|
|
appPath: `${appOutDir}/${appName}.app`,
|
|
|
|
appleId: process.env.APPLE_ID,
|
2021-09-02 14:03:50 +02:00
|
|
|
appleIdPassword: process.env.APPLE_PASSWORD,
|
|
|
|
teamId: 'HB4N6B2YVM'
|
2021-03-19 09:51:08 +01:00
|
|
|
})
|
|
|
|
}
|