mirror of
https://github.com/Eugeny/tabby
synced 2024-12-15 07:42:55 +00:00
27 lines
712 B
JavaScript
Executable file
27 lines
712 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
const rebuild = require('electron-rebuild').default
|
|
const path = require('path')
|
|
const vars = require('./vars')
|
|
|
|
lifecycles = []
|
|
lifecycles.push(rebuild({
|
|
buildPath: path.resolve(__dirname, '../app'),
|
|
electronVersion: vars.electronVersion,
|
|
force: true,
|
|
}).lifecycle)
|
|
lifecycles.push(rebuild({
|
|
buildPath: path.resolve(__dirname, '../terminus-ssh'),
|
|
electronVersion: vars.electronVersion,
|
|
force: true,
|
|
}).lifecycle)
|
|
lifecycles.push(rebuild({
|
|
buildPath: path.resolve(__dirname, '../terminus-terminal'),
|
|
electronVersion: vars.electronVersion,
|
|
force: true,
|
|
}).lifecycle)
|
|
|
|
for (let lc of lifecycles) {
|
|
lc.on('module-found', name => {
|
|
console.info('Rebuilding', name)
|
|
})
|
|
}
|