From 40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 15 Jun 2021 08:27:19 +0530 Subject: Skip notarization of the build artifact if not building for the main repo (ie building on a forked repo).. --- build-helpers/notarize.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build-helpers') diff --git a/build-helpers/notarize.js b/build-helpers/notarize.js index d5a6027fb..1d9302880 100644 --- a/build-helpers/notarize.js +++ b/build-helpers/notarize.js @@ -1,18 +1,18 @@ -const { notarize } = require("electron-notarize"); +const { notarize } = require('electron-notarize'); exports.default = async function notarizing(context) { const { electronPlatformName, appOutDir } = context; - if (electronPlatformName !== "darwin" || (process.env.GIT_BRANCH_NAME !== 'release' && process.env.GIT_BRANCH_NAME !== 'nightly')) { + if (electronPlatformName !== 'darwin' || process.env.SKIP_NOTARIZATION === 'true' || (process.env.GIT_BRANCH_NAME !== 'release' && process.env.GIT_BRANCH_NAME !== 'nightly')) { return; } const appName = context.packager.appInfo.productFilename; - return await notarize({ - appBundleId: "com.kytwb.ferdi", + await notarize({ + appBundleId: 'com.kytwb.ferdi', appPath: `${appOutDir}/${appName}.app`, - ascProvider: "B6J9X9DWFL", + ascProvider: 'B6J9X9DWFL', appleId: process.env.APPLEID, - appleIdPassword: process.env.APPLEID_PASSWORD + appleIdPassword: process.env.APPLEID_PASSWORD, }); }; -- cgit v1.2.3-54-g00ecf