Skip to content

Commit

Permalink
use env variable for apple id password
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Dec 4, 2020
1 parent 87bdc88 commit 19e1049
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ exports.default = async function notarizing(context) {
if (electronPlatformName !== 'darwin') {
return;
}
const appleId = process.env.APPLEID;
const appleId = process.env.APPLE_ID_USERNAME || process.env.APPLEID;
const appleIdPassword = process.env.APPLE_ID_PASSWORD || `@keychain:AC_PASSWORD`;
const appName = context.packager.appInfo.productFilename;
return await notarize({
appBundleId: 'com.bitwarden.directory-connector',
appPath: `${appOutDir}/${appName}.app`,
appleId: appleId,
appleIdPassword: `@keychain:AC_PASSWORD`,
appleIdPassword: appleIdPassword,
});
};

0 comments on commit 19e1049

Please sign in to comment.