update build process

This commit is contained in:
jiaming743
2019-09-03 11:07:45 +08:00
parent 170facb3fc
commit a1d7d4626d
7 changed files with 23963 additions and 3 deletions

19
build/plugin/exec.js Normal file
View File

@ -0,0 +1,19 @@
const { exec } = require('child_process')
function doExec (execString, maxBuffer = 1024 ** 5) {
return new Promise(resolve => {
exec(execString, {
maxBuffer
}, err => {
if (err) {
console.error(err)
resolve(false)
} else {
resolve(true)
}
})
})
}
module.exports = doExec