Support both web and wxwork types in getZip.js

This commit is contained in:
aixianling
2024-10-31 12:17:31 +08:00
parent eeb5c0a511
commit 9d7e2136cc

View File

@@ -60,11 +60,12 @@ const handleZip = (id, ws) => {
if (info.id) {
const {signal} = controller;
const progress = new counter(`正在处理 ${info.name} 的打包工作...`)
if (info.type == 'web') {
if (['web','wxwork'].includes(info.type)) {
const {name, version, dist} = info
const deploy = dist?.trim() || `${name}v${version}`
const buildConfig = {
web: {task: "devops-web", token: 'fLeOGSVIRs405Me'},
wxwork: {task: "devops-h5", token: 'fLeOGSVIRs405Me'},
}[info.type]
let currentJob = 1
startUpdateSql()