mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-24 06:04:04 +03:00
20 lines
612 B
JavaScript
20 lines
612 B
JavaScript
|
#!/usr/bin/env node
|
||
|
const rebuild = require('electron-rebuild').default
|
||
|
const builder = require('electron-builder').default
|
||
|
const sh = require('shelljs')
|
||
|
const path = require('path')
|
||
|
const fs = require('fs')
|
||
|
const vars = require('./vars')
|
||
|
|
||
|
let target = path.resolve(__dirname, '../builtin-plugins')
|
||
|
|
||
|
sh.mkdir('-p', target)
|
||
|
fs.writeFileSync(path.join(target, 'package.json'), '{}')
|
||
|
sh.cd(target)
|
||
|
vars.builtinPlugins.forEach(plugin => {
|
||
|
sh.exec(`npm install ${path.join('..', plugin)}`)
|
||
|
})
|
||
|
sh.exec('npm dedupe')
|
||
|
sh.cd('..')
|
||
|
rebuild(target, vars.electronVersion, process.arch, ['node-pty', 'font-manager'], true)
|