mirror of
https://github.com/Eugeny/tabby.git
synced 2025-03-19 15:30:40 +08:00
handle build errors
This commit is contained in:
parent
2188eef202
commit
986bdf8e24
@ -181,7 +181,6 @@ jobs:
|
||||
GH_TOKEN: $(GH_TOKEN)
|
||||
APPSTORE_USERNAME: $(APPSTORE_USERNAME)
|
||||
APPSTORE_PASSWORD: $(APPSTORE_PASSWORD)
|
||||
BRANCH: $(BUILD_SOURCEBRANCH)
|
||||
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
|
@ -7,7 +7,7 @@ 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.BRANCH !== 'refs/heads/master') {
|
||||
if (process.platform !== 'darwin' || process.env.BUILD_SOURCEBRANCH !== 'refs/heads/master') {
|
||||
return
|
||||
}
|
||||
console.log('afterSign hook triggered', params)
|
||||
|
@ -11,4 +11,4 @@ builder({
|
||||
},
|
||||
},
|
||||
publish: 'onTag',
|
||||
})
|
||||
}).catch(() => process.exit(1))
|
||||
|
@ -11,4 +11,4 @@ builder({
|
||||
},
|
||||
},
|
||||
publish: 'onTag',
|
||||
})
|
||||
}).catch(() => process.exit(1))
|
||||
|
@ -5,11 +5,13 @@ const vars = require('./vars')
|
||||
|
||||
lifecycles = []
|
||||
for (let dir of ['app', 'terminus-core', 'terminus-ssh', 'terminus-terminal']) {
|
||||
lifecycles.push([rebuild({
|
||||
build = rebuild({
|
||||
buildPath: path.resolve(__dirname, '../' + dir),
|
||||
electronVersion: vars.electronVersion,
|
||||
force: true,
|
||||
}).lifecycle, dir])
|
||||
})
|
||||
build.catch(() => process.exit(1))
|
||||
lifecycles.push([build.lifecycle, dir])
|
||||
}
|
||||
|
||||
console.info('Building against Electron', vars.electronVersion)
|
||||
|
@ -11,4 +11,4 @@ builder({
|
||||
},
|
||||
},
|
||||
publish: 'onTag',
|
||||
})
|
||||
}).catch(() => process.exit(1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user