Support both web and wxwork types in getZip.js
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user