mirror of
https://github.com/Eugeny/tabby
synced 2024-12-15 07:42:55 +00:00
27 lines
773 B
JavaScript
Executable file
27 lines
773 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
const rebuild = require('electron-rebuild').default
|
|
const path = require('path')
|
|
const vars = require('./vars')
|
|
|
|
let lifecycles = []
|
|
for (let dir of ['app', 'tabby-core', 'tabby-local', 'tabby-ssh', 'tabby-terminal']) {
|
|
const build = rebuild({
|
|
buildPath: path.resolve(__dirname, '../' + dir),
|
|
electronVersion: vars.electronVersion,
|
|
arch: process.env.ARCH ?? process.arch,
|
|
force: true,
|
|
})
|
|
build.catch(e => {
|
|
console.error(e)
|
|
process.exit(1)
|
|
})
|
|
lifecycles.push([build.lifecycle, dir])
|
|
}
|
|
|
|
console.info('Building against Electron', vars.electronVersion)
|
|
|
|
for (let [lc, dir] of lifecycles) {
|
|
lc.on('module-found', name => {
|
|
console.info('Rebuilding', dir + '/' + name)
|
|
})
|
|
}
|