mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
notarize electron app
This commit is contained in:
15
scripts/notarize.js
Normal file
15
scripts/notarize.js
Normal 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"',
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user