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',
|
2022-01-03 15:15:59 +01:00
|
|
|
ascProvider: process.env.ASC_PROVIDER,
|
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,
|
2022-01-03 15:15:59 +01:00
|
|
|
teamId: process.env.TEAM_ID
|
2021-03-19 09:51:08 +01:00
|
|
|
})
|
|
|
|
}
|