From c8b40bfdb26fef2936457abad7719a98be30b206 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 29 Nov 2020 18:45:37 +0000 Subject: [PATCH] Chore: Getting notarization to work --- packages/app-desktop/tools/notarizeMacApp.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/app-desktop/tools/notarizeMacApp.js b/packages/app-desktop/tools/notarizeMacApp.js index 701f00cbd..302d65f31 100644 --- a/packages/app-desktop/tools/notarizeMacApp.js +++ b/packages/app-desktop/tools/notarizeMacApp.js @@ -7,13 +7,8 @@ module.exports = async function(params) { console.info('Checking if notarization should be done...'); - if (process.env.TRAVIS_PULL_REQUEST) { - console.info('Detected Travis pull request build - skipping notarization'); - return; - } - - if (!!process.env.TRAVIS && !process.env.TRAVIS_TAG) { - console.info('Detected Travis environment but no tag - skipping notarization'); + if (!process.env.TRAVIS || !process.env.TRAVIS_TAG) { + console.info(`Either not running in CI or not processing a tag - skipping notarization. process.env.TRAVIS = ${process.env.TRAVIS}; process.env.TRAVIS_TAG = ${process.env.TRAVIS}`); return; }