1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-26 03:51:49 +03:00
tabby/scripts/build-native.js

28 lines
712 B
JavaScript
Raw Normal View History

2017-05-01 01:01:12 +03:00
#!/usr/bin/env node
const rebuild = require('electron-rebuild').default
const path = require('path')
const vars = require('./vars')
2018-08-09 21:53:22 +03:00
lifecycles = []
lifecycles.push(rebuild({
2018-08-02 20:34:46 +03:00
buildPath: path.resolve(__dirname, '../app'),
electronVersion: vars.electronVersion,
force: true,
2018-08-09 21:53:22 +03:00
}).lifecycle)
lifecycles.push(rebuild({
buildPath: path.resolve(__dirname, '../terminus-ssh'),
electronVersion: vars.electronVersion,
force: true,
2018-08-09 21:53:22 +03:00
}).lifecycle)
lifecycles.push(rebuild({
buildPath: path.resolve(__dirname, '../terminus-terminal'),
electronVersion: vars.electronVersion,
force: true,
2018-08-09 21:53:22 +03:00
}).lifecycle)
for (let lc of lifecycles) {
lc.on('module-found', name => {
console.info('Rebuilding', name)
})
}