1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-01-30 00:55:20 +01:00

21 lines
581 B
JavaScript
Raw Normal View History

2021-03-19 17:51:08 +09: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 13:40:01 +09:00
tool: 'notarytool',
2021-03-19 17:51:08 +09:00
appBundleId: 'org.whalebird.desktop',
ascProvider: process.env.ASC_PROVIDER,
2021-03-19 17:51:08 +09:00
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
2021-09-02 21:03:50 +09:00
appleIdPassword: process.env.APPLE_PASSWORD,
teamId: process.env.TEAM_ID
2021-03-19 17:51:08 +09:00
})
}