Merge pull request #16 from vector-im/dbkr/allow_no_notarise

Don't bail if we can't notarise
This commit is contained in:
David Baker 2019-12-13 11:46:27 +00:00 committed by GitHub
commit 50b43bfa60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.");