handle build errors

This commit is contained in:
Eugene Pankov 2019-06-27 11:47:57 +02:00
parent 2188eef202
commit 986bdf8e24
6 changed files with 8 additions and 7 deletions

View File

@ -181,7 +181,6 @@ jobs:
GH_TOKEN: $(GH_TOKEN) GH_TOKEN: $(GH_TOKEN)
APPSTORE_USERNAME: $(APPSTORE_USERNAME) APPSTORE_USERNAME: $(APPSTORE_USERNAME)
APPSTORE_PASSWORD: $(APPSTORE_PASSWORD) APPSTORE_PASSWORD: $(APPSTORE_PASSWORD)
BRANCH: $(BUILD_SOURCEBRANCH)
- task: CopyFiles@2 - task: CopyFiles@2
inputs: inputs:

View File

@ -7,7 +7,7 @@ const notarizer = require('electron-notarize')
module.exports = async function (params) { module.exports = async function (params) {
console.log('env: ', process.env) console.log('env: ', process.env)
// notarize the app on Mac OS only. // notarize the app on Mac OS only.
if (process.platform !== 'darwin'){// || process.env.BRANCH !== 'refs/heads/master') { if (process.platform !== 'darwin' || process.env.BUILD_SOURCEBRANCH !== 'refs/heads/master') {
return return
} }
console.log('afterSign hook triggered', params) console.log('afterSign hook triggered', params)

View File

@ -11,4 +11,4 @@ builder({
}, },
}, },
publish: 'onTag', publish: 'onTag',
}) }).catch(() => process.exit(1))

View File

@ -11,4 +11,4 @@ builder({
}, },
}, },
publish: 'onTag', publish: 'onTag',
}) }).catch(() => process.exit(1))

View File

@ -5,11 +5,13 @@ const vars = require('./vars')
lifecycles = [] lifecycles = []
for (let dir of ['app', 'terminus-core', 'terminus-ssh', 'terminus-terminal']) { for (let dir of ['app', 'terminus-core', 'terminus-ssh', 'terminus-terminal']) {
lifecycles.push([rebuild({ build = rebuild({
buildPath: path.resolve(__dirname, '../' + dir), buildPath: path.resolve(__dirname, '../' + dir),
electronVersion: vars.electronVersion, electronVersion: vars.electronVersion,
force: true, force: true,
}).lifecycle, dir]) })
build.catch(() => process.exit(1))
lifecycles.push([build.lifecycle, dir])
} }
console.info('Building against Electron', vars.electronVersion) console.info('Building against Electron', vars.electronVersion)

View File

@ -11,4 +11,4 @@ builder({
}, },
}, },
publish: 'onTag', publish: 'onTag',
}) }).catch(() => process.exit(1))