diff --git a/.gitignore b/.gitignore index bd0a6892..850ba7df 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ yarn-error.log .DS_Store *.nupkg *.provisionprofile +*.env diff --git a/scripts/notarize.js b/scripts/notarize.js index 95880e40..e8c070be 100644 --- a/scripts/notarize.js +++ b/scripts/notarize.js @@ -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`, }); };