1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-23 10:32:29 +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 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', component: 'main' },
{ provider: 'github' },
] : [
{ provider: 'bintray', component: 'nightly' },
],
extraMetadata: {
version: vars.version,
},
},
publish: isTag ? 'always' : 'onTag',
publish: isCI ? 'always' : 'onTag',
}).catch(() => process.exit(1))

View File

@ -3,14 +3,21 @@ 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,
mac: ['pkg', 'zip'],
config: {
publish: isTag ? [
{ provider: 'bintray', component: 'main' },
{ provider: 'github' },
] : [
{ provider: 'bintray', component: 'nightly' },
],
extraMetadata: {
version: vars.version,
},
},
publish: isTag ? 'always' : 'onTag',
publish: isCI ? 'always' : 'onTag',
}).catch(() => process.exit(1))

View File

@ -3,14 +3,21 @@ 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,
win: ['nsis', 'portable'],
config: {
publish: isTag ? [
{ provider: 'bintray', component: 'main' },
{ provider: 'github' },
] : [
{ provider: 'bintray', component: 'nightly' },
],
extraMetadata: {
version: vars.version,
},
},
publish: isTag ? 'always' : 'onTag',
publish: isCI ? 'always' : 'onTag',
}).catch(() => process.exit(1))