Skip to content

Commit 81578fc

Browse files
authored
Merge pull request element-hq#12503 from vector-im/jryans/relax-notarisation-check
Relax macOS notarisation check to print a warning
2 parents 9d1dbf4 + bdb395a commit 81578fc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎scripts/electron_afterSign.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ exports.default = async function(context) {
1010
// from the keychain, so we need to get it from the environment.
1111
const userId = process.env.NOTARIZE_APPLE_ID;
1212
if (userId === undefined) {
13-
throw new Error("User ID not found. Set NOTARIZE_APPLE_ID.");
13+
console.warn(
14+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" +
15+
"! Skipping notarisation: User ID not found, set NOTARIZE_APPLE_ID. !\n" +
16+
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
17+
);
18+
return;
1419
}
1520

1621
console.log("Notarising macOS app. This may be some time.");

0 commit comments

Comments
 (0)