增加node多版本兼容打包

This commit is contained in:
aixianling
2022-06-23 09:42:52 +08:00
parent 35019b0d0f
commit a0585e0914

View File

@@ -20,8 +20,7 @@ module.exports = {
updateCMD = `/root/node-service/update.sh ${name} ${zipPath}`,
buildCMD = `/root/node-service/build.sh ${type} ${zipPath} ${target}`
if (nodeVersion) {
updateCMD += `&n ${nodeVersion}`
buildCMD += `&n 16.14.0`
buildCMD += ` ${nodeVersion}`
}
return execute(updateCMD).then(() => execute(buildCMD))
} else {