mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
load apple id and password properly for notarize
This commit is contained in:
parent
8beaf6c6dd
commit
323bc78977
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ yarn-error.log
|
||||
.DS_Store
|
||||
*.nupkg
|
||||
*.provisionprofile
|
||||
*.env
|
||||
|
@ -1,3 +1,4 @@
|
||||
require('dotenv').config();
|
||||
const { notarize } = require('electron-notarize');
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
@ -5,11 +6,12 @@ exports.default = async function notarizing(context) {
|
||||
if (electronPlatformName !== 'darwin') {
|
||||
return;
|
||||
}
|
||||
const appleId = process.env.APPLEID;
|
||||
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"',
|
||||
appPath: `${appOutDir}/${appName}.app`,
|
||||
appleId: appleId,
|
||||
appleIdPassword: `@keychain:AC_PASSWORD`,
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user