tabby/scripts/build-windows.js
Eugene Pankov a8e1cee84a bintray
2019-08-27 00:15:49 +02:00

23 lines
647 B
JavaScript
Executable file

#!/usr/bin/env node
const builder = require('electron-builder').build
const vars = require('./vars')
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
const isCI = !!process.env.GITHUB_REF
builder({
dir: true,
win: ['nsis', 'portable'],
config: {
publish: isTag ? [
{ provider: 'bintray', 'package': 'terminus' },
{ provider: 'github' },
] : [
{ provider: 'bintray', 'package': 'terminus-nightly' },
],
extraMetadata: {
version: vars.version,
},
},
publish: isCI ? 'always' : 'onTag',
}).catch(() => process.exit(1))