增加node多版本兼容打包
This commit is contained in:
@@ -18,10 +18,7 @@ module.exports = {
|
|||||||
if (!!info.type) {
|
if (!!info.type) {
|
||||||
let {type, zipPath, target, name, nodeVersion} = info,
|
let {type, zipPath, target, name, nodeVersion} = info,
|
||||||
updateCMD = `/root/node-service/update.sh ${name} ${zipPath}`,
|
updateCMD = `/root/node-service/update.sh ${name} ${zipPath}`,
|
||||||
buildCMD = `/root/node-service/build.sh ${type} ${zipPath} ${target}`
|
buildCMD = `/root/node-service/build.sh ${type} ${zipPath} ${target} ${nodeVersion || '16.14.0'}`
|
||||||
if (nodeVersion) {
|
|
||||||
buildCMD += ` ${nodeVersion}`
|
|
||||||
}
|
|
||||||
return execute(updateCMD).then(() => execute(buildCMD))
|
return execute(updateCMD).then(() => execute(buildCMD))
|
||||||
} else {
|
} else {
|
||||||
return execute(`${info.updateShell}`).then(() => execute(`${info.libShell}`))
|
return execute(`${info.updateShell}`).then(() => execute(`${info.libShell}`))
|
||||||
|
|||||||
Reference in New Issue
Block a user