-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathnotarize.js
More file actions
18 lines (14 loc) · 595 Bytes
/
notarize.js
File metadata and controls
18 lines (14 loc) · 595 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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({
appBundleId: 'com.wearecreativeland.companiondashboard',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
tool: 'notarytool',
});
};