1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

notarize electron app

This commit is contained in:
Kyle Spearrin
2019-07-24 16:37:23 -04:00
parent bc1f07e193
commit 8beaf6c6dd
5 changed files with 71 additions and 21 deletions

15
scripts/notarize.js Normal file
View File

@@ -0,0 +1,15 @@
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.bitwarden.desktop',
appPath: appOutDir + '/' + appName + '.app',
appleId: '@keychain:"Apple Id Notarization Id"',
appleIdPassword: '@keychain:"Apple Id Notarization Password"',
});
};