From 19e1049566a71b01e3332d8e3b2922115db28b88 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 3 Dec 2020 23:10:30 -0500 Subject: [PATCH] use env variable for apple id password --- scripts/notarize.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/notarize.js b/scripts/notarize.js index 9336dd313..1383ae99c 100644 --- a/scripts/notarize.js +++ b/scripts/notarize.js @@ -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, }); };