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({
|
2018-05-28 11:50:38 +03:00
|
|
|
buildPath: path.resolve(__dirname, '../terminus-ssh'),
|
|
|
|
electronVersion: vars.electronVersion,
|
|
|
|
force: true,
|
2018-08-09 21:53:22 +03:00
|
|
|
}).lifecycle)
|
|
|
|
lifecycles.push(rebuild({
|
2018-05-28 11:50:38 +03:00
|
|
|
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)
|
|
|
|
})
|
|
|
|
}
|