1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-22 18:11:43 +03:00

Update build-linux.js

This commit is contained in:
Jai A P 2022-03-09 10:35:37 +05:30 committed by GitHub
parent 5c325a347c
commit b5506cff61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,13 +4,18 @@ const vars = require('./vars')
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
process.env.ARCH = process.env.ARCH || process.arch
builder({
dir: true,
linux: ['deb', 'tar.gz', 'rpm', 'pacman'],
armv7l: process.env.ARCH === 'armv7l',
arm64: process.env.ARCH === 'arm64',
config: {
extraMetadata: {
version: vars.version,
},
npmRebuild: (process.env.ARCH !== 'arm64' && process.env.ARCH !== 'armv7l'),
},
publish: isTag ? 'always' : 'onTag',
}).catch(() => process.exit(1))