tabby/scripts/build-native.js

22 lines
588 B
JavaScript
Raw Normal View History

2017-04-30 22:01:12 +00:00
#!/usr/bin/env node
const rebuild = require('electron-rebuild').default
const path = require('path')
const vars = require('./vars')
2018-08-09 18:53:22 +00:00
lifecycles = []
for (let dir of ['app', 'terminus-core', 'terminus-ssh', 'terminus-terminal']) {
2018-12-15 14:49:06 +00:00
lifecycles.push([rebuild({
buildPath: path.resolve(__dirname, '../' + dir),
electronVersion: vars.electronVersion,
force: true,
}).lifecycle, dir])
}
console.info('Building against Electron', vars.electronVersion)
2018-08-09 18:53:22 +00:00
2018-12-15 14:49:06 +00:00
for (let [lc, dir] of lifecycles) {
2018-08-09 18:53:22 +00:00
lc.on('module-found', name => {
2018-12-15 14:49:06 +00:00
console.info('Rebuilding', dir + '/' + name)
2018-08-09 18:53:22 +00:00
})
}