Relax macOS notarisation check to print a warning

This makes it a bit more friendly to build macOS Electron builds without a
notarisation config set up by only warning when it is missing.
pull/12503/head
J. Ryan Stinnett 2020-02-25 11:44:33 +00:00
parent f98ca56b5e
commit 420537a64d
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ exports.default = async function(context) {
// from the keychain, so we need to get it from the environment. // from the keychain, so we need to get it from the environment.
const userId = process.env.NOTARIZE_APPLE_ID; const userId = process.env.NOTARIZE_APPLE_ID;
if (userId === undefined) { if (userId === undefined) {
throw new Error("User ID not found. Set NOTARIZE_APPLE_ID."); console.warn(
"Skipping notarisation: User ID not found, set NOTARIZE_APPLE_ID.",
);
return;
} }
console.log("Notarising macOS app. This may be some time."); console.log("Notarising macOS app. This may be some time.");