1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-23 18:44:20 +03:00
This commit is contained in:
Eugene Pankov 2019-08-26 23:52:20 +02:00
parent 3bc387b1d9
commit bd713f8e07
3 changed files with 24 additions and 3 deletions

View File

@ -3,14 +3,21 @@ const builder = require('electron-builder').build
const vars = require('./vars') const vars = require('./vars')
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/') const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
const isCI = !!process.env.GITHUB_REF
builder({ builder({
dir: true, dir: true,
linux: ['snap', 'deb', 'rpm', 'tar.gz'], linux: ['snap', 'deb', 'rpm', 'tar.gz'],
config: { config: {
publish: isTag ? [
{ provider: 'bintray', component: 'main' },
{ provider: 'github' },
] : [
{ provider: 'bintray', component: 'nightly' },
],
extraMetadata: { extraMetadata: {
version: vars.version, version: vars.version,
}, },
}, },
publish: isTag ? 'always' : 'onTag', publish: isCI ? 'always' : 'onTag',
}).catch(() => process.exit(1)) }).catch(() => process.exit(1))

View File

@ -3,14 +3,21 @@ const builder = require('electron-builder').build
const vars = require('./vars') const vars = require('./vars')
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/') const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
const isCI = !!process.env.GITHUB_REF
builder({ builder({
dir: true, dir: true,
mac: ['pkg', 'zip'], mac: ['pkg', 'zip'],
config: { config: {
publish: isTag ? [
{ provider: 'bintray', component: 'main' },
{ provider: 'github' },
] : [
{ provider: 'bintray', component: 'nightly' },
],
extraMetadata: { extraMetadata: {
version: vars.version, version: vars.version,
}, },
}, },
publish: isTag ? 'always' : 'onTag', publish: isCI ? 'always' : 'onTag',
}).catch(() => process.exit(1)) }).catch(() => process.exit(1))

View File

@ -3,14 +3,21 @@ const builder = require('electron-builder').build
const vars = require('./vars') const vars = require('./vars')
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/') const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
const isCI = !!process.env.GITHUB_REF
builder({ builder({
dir: true, dir: true,
win: ['nsis', 'portable'], win: ['nsis', 'portable'],
config: { config: {
publish: isTag ? [
{ provider: 'bintray', component: 'main' },
{ provider: 'github' },
] : [
{ provider: 'bintray', component: 'nightly' },
],
extraMetadata: { extraMetadata: {
version: vars.version, version: vars.version,
}, },
}, },
publish: isTag ? 'always' : 'onTag', publish: isCI ? 'always' : 'onTag',
}).catch(() => process.exit(1)) }).catch(() => process.exit(1))