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

pull password from env

This commit is contained in:
Kyle Spearrin
2020-09-22 16:55:40 -04:00
parent 0dbe4bc66e
commit c5250adf53
4 changed files with 11 additions and 5 deletions

View File

@@ -7,18 +7,19 @@ async function run(context) {
console.log('## After sign');
// console.log(context);
const appleId = process.env.APPLEID;
const appName = context.packager.appInfo.productFilename;
const appPath = `${context.appOutDir}/${appName}.app`;
const macBuild = context.electronPlatformName === 'darwin';
if (macBuild) {
console.log('### Notarizing ' + appPath);
const appName = context.packager.appInfo.productFilename;
const appPath = `${context.appOutDir}/${appName}.app`;
const appleId = process.env.APPLE_ID_USERNAME || process.env.APPLEID;
const appleIdPassword = process.env.APPLE_ID_PASSWORD || `@keychain:AC_PASSWORD`;
return await notarize({
appBundleId: 'com.bitwarden.desktop',
appPath: appPath,
appleId: appleId,
appleIdPassword: `@keychain:AC_PASSWORD`,
appleIdPassword: appleIdPassword,
});
}
}