From 36f87420f9aca05146a7c2010574dd9efc209c45 Mon Sep 17 00:00:00 2001 From: Sam Wray Date: Fri, 18 Sep 2020 16:44:43 +0100 Subject: [PATCH] build(notarize): adds check for apple credentials (#446) Local builds will fail if the environment variables for notarization are not satisfied. Notarization is not required when testing a build locally, so this allows local builds to complete without Apple credentials --- notarize.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/notarize.js b/notarize.js index c10b53630..5d082884b 100644 --- a/notarize.js +++ b/notarize.js @@ -3,7 +3,11 @@ const { notarize } = require("electron-notarize"); exports.default = async function notarizing(context) { const { electronPlatformName, appOutDir } = context; - if (electronPlatformName !== "darwin") { + if ( + electronPlatformName !== "darwin" || + !process.env.APPLEID || + !process.env.APPLEIDPASS + ) { return; }