From 2201cfe142234434a8d94c561ecd9e31c9e1aee7 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Mon, 4 May 2020 14:19:40 +0200 Subject: [PATCH] notarizer fix --- build/mac/afterSignHook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/mac/afterSignHook.js b/build/mac/afterSignHook.js index 6d68d998..a937f575 100644 --- a/build/mac/afterSignHook.js +++ b/build/mac/afterSignHook.js @@ -6,7 +6,7 @@ const notarizer = require('electron-notarize') module.exports = async function (params) { // notarize the app on Mac OS only. - if (process.platform !== 'darwin' || process.env.GITHUB_REF !== 'refs/heads/master' || process.env.GITHUB_REF && !process.env.GITHUB_REF.startsWith('refs/tags/')) { + if (process.platform !== 'darwin' || !process.env.GITHUB_REF || !process.env.GITHUB_REF.startsWith('refs/tags/')) { return } console.log('afterSign hook triggered', params)