notarizer fix

This commit is contained in:
Eugene Pankov 2020-05-04 14:19:40 +02:00
parent 454887ad21
commit 2201cfe142
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -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)