From 89312425803766bdcf91e6218f58249f8b565dcd Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 13 Dec 2019 11:21:34 +0000 Subject: [PATCH] Don't bail if we can't notarise Just print a big fat warning instead. --- scripts/electron_afterSign.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/electron_afterSign.js b/scripts/electron_afterSign.js index 5952976..5307eaa 100644 --- a/scripts/electron_afterSign.js +++ b/scripts/electron_afterSign.js @@ -10,7 +10,11 @@ exports.default = async function(context) { // from the keychain, so we need to get it from the environment. const userId = process.env.NOTARIZE_APPLE_ID; if (userId === undefined) { - throw new Error("User ID not found. Set NOTARIZE_APPLE_ID."); + console.log("*************************************"); + console.log("* NOTARIZE_APPLE_ID is not set. *"); + console.log("* This build will NOT be notarised. *"); + console.log("*************************************"); + return; } console.log("Notarising macOS app. This may be some time.");