blob: 5cfc6b54166a064aeeb99e7e9206b4429e901d2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin' || process.env.CSC_IDENTITY_AUTO_DISCOVERY === 'false' || (process.env.GIT_BRANCH_NAME !== 'release' && process.env.GIT_BRANCH_NAME !== 'nightly')) {
return;
}
const appName = context.packager.appInfo.productFilename;
// @ts-ignore global-require
const { notarize } = require('electron-notarize');
await notarize({
tool: 'notarytool',
appBundleId: 'org.ferdium.ferdium-app',
appPath: `${appOutDir}/${appName}.app`,
teamId: '55E9FPJ93P',
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEID_PASSWORD,
});
};
|