1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-30 02:54:04 +03:00
tabby/scripts/build-linux.js
Eugene Pankov f6d08af986 Revert "re-added snap build"
This reverts commit ff2c2031b5.
2020-01-30 18:54:55 +03:00

18 lines
438 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: ['deb', 'tar.gz', 'rpm'],
config: {
extraMetadata: {
version: vars.version,
},
},
publish: isTag ? 'always' : 'onTag',
}).catch(() => process.exit(1))