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

24 lines
661 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,
linux: ['snap', 'deb', 'rpm', 'tar.gz'],
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))