From 2bab328f8d85d9babe6bbff7c9cf8ead6c6e7400 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 10 Oct 2019 15:32:17 +0100 Subject: [PATCH] Check everything's in place for the notarising dance ...before we start the build process. --- scripts/electron-package.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/electron-package.sh b/scripts/electron-package.sh index 63c2fd72..9b796b95 100755 --- a/scripts/electron-package.sh +++ b/scripts/electron-package.sh @@ -67,6 +67,14 @@ if [ ! -f package.json ]; then exit fi +if [ -z "$NOTARIZE_APPLE_ID" ]; then + echo "NOTARIZE_APPLE_ID is not set" + exit +fi + +# Test that altool can get its credentials for notarising the mac app +xcrun altool -u "$NOTARIZE_APPLE_ID" -p '@keychain:NOTARIZE_CREDS' --list-apps || exit + echo "Building $version using Update base URL $update_base_url" projdir=`pwd`