引入expect库到容器中
This commit is contained in:
@@ -104,8 +104,8 @@ const handleZip = (id, ws) => {
|
||||
const buildPath = {
|
||||
web: 'base-web', wxwork: 'base-wxcp', mp: 'dvcp_v2_wxmp'
|
||||
}[info.type] || {}
|
||||
let path = `../${buildPath}`, {dist} = info
|
||||
dist = dist || `../zips/${info.name}v${info.version || "1.0.0"}`
|
||||
let path = `/${buildPath}`, {dist} = info
|
||||
dist = dist || `/zips/${info.name}v${info.version || "1.0.0"}`
|
||||
Promise.all([startUpdateSql(), execute(`./shell/update.sh ${info.name} ${path}`, signal)])
|
||||
.then(cmd => progress.set(30, info?.id))
|
||||
.then(() => execute(`cd ${path}&&npm run apps&&node bin/pages.js ${id}&&npm run build`, signal))
|
||||
|
||||
Reference in New Issue
Block a user