1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-08 23:15:26 +01:00
Whalebird-desktop-client-ma.../build/notarize.js

21 lines
581 B
JavaScript
Raw Normal View History

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