tabby/scripts/build-native.js

28 lines
712 B
JavaScript
Raw Normal View History

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