Update afterSignHook.js

This commit is contained in:
Eugene Pankov 2019-08-15 15:57:54 +02:00
parent bf4e0e4f3d
commit f177a5c734

View File

@ -5,9 +5,8 @@ const path = require('path')
const notarizer = require('electron-notarize')
module.exports = async function (params) {
console.log('env: ', process.env)
// notarize the app on Mac OS only.
if (process.platform !== 'darwin' || process.env.BUILD_SOURCEBRANCH !== 'refs/heads/master' || process.env.TRAVIS_BRANCH && !process.env.TRAVIS_PULL_REQUEST_BRANCH) {
if (process.platform !== 'darwin' || process.env.GITHUB_REF !== 'refs/heads/master' || process.env.GITHUB_REF && !process.env.GITHUB_REF.startsWith('refs/tags/')) {
return
}
console.log('afterSign hook triggered', params)