tabby/scripts/build-linux.js

17 lines
416 B
JavaScript
Raw Normal View History

2017-05-01 11:35:26 +00:00
#!/usr/bin/env node
const builder = require('electron-builder').build
const vars = require('./vars')
2019-07-04 12:08:47 +00:00
const isTag = (process.env.BUILD_SOURCEBRANCH || '').startsWith('refs/tags/')
2017-05-01 11:35:26 +00:00
builder({
2019-07-04 12:08:47 +00:00
dir: true,
linux: ['snap', 'deb', 'rpm', 'tar.gz'],
config: {
extraMetadata: {
version: vars.version,
},
2018-08-09 19:47:38 +00:00
},
2019-07-04 12:08:47 +00:00
publish: isTag ? 'always' : 'onTag',
2019-06-27 09:47:57 +00:00
}).catch(() => process.exit(1))