优化脚本

This commit is contained in:
aixianling
2022-06-17 18:12:31 +08:00
parent 9c9e249f56
commit ce2503cad0

View File

@@ -18,8 +18,8 @@ module.exports = {
})
Promise.resolve(() => {
if (!!info.type) {
let {type, zipPath, target} = info
return execute(`/root/node-service/build.sh ${type} ${zipPath} ${target}`)
let {type, zipPath, target, name} = info
return execute(`/root/node-service/update.sh ${name} ${zipPath}`).then(() => execute(`/root/node-service/build.sh ${type} ${zipPath} ${target}`))
} else {
return execute(`${info.updateShell}`).then(() => execute(`${info.libShell}`))
}