1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-18 15:41:54 +03:00
tabby/scripts/build-macos.js

18 lines
426 B
JavaScript
Raw Normal View History

2017-05-01 17:01:14 +03:00
#!/usr/bin/env node
const builder = require('electron-builder').build
const vars = require('./vars')
2019-08-15 16:17:15 +03:00
const isTag = (process.env.GITHUB_REF || '').startsWith('refs/tags/')
2019-08-27 00:52:20 +03:00
const isCI = !!process.env.GITHUB_REF
2019-07-04 15:08:47 +03:00
2017-05-01 17:01:14 +03:00
builder({
2019-07-04 15:08:47 +03:00
dir: true,
mac: ['pkg', 'zip'],
config: {
extraMetadata: {
version: vars.version,
},
2018-08-09 22:47:38 +03:00
},
2019-08-27 11:33:30 +03:00
publish: isTag ? 'always' : 'onTag',
2019-06-27 12:47:57 +03:00
}).catch(() => process.exit(1))