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) {
|
if (info.id) {
|
||||||
const {signal} = controller;
|
const {signal} = controller;
|
||||||
const progress = new counter(`正在处理 ${info.name} 的打包工作...`)
|
const progress = new counter(`正在处理 ${info.name} 的打包工作...`)
|
||||||
if (info.type == 'web') {
|
if (['web','wxwork'].includes(info.type)) {
|
||||||
const {name, version, dist} = info
|
const {name, version, dist} = info
|
||||||
const deploy = dist?.trim() || `${name}v${version}`
|
const deploy = dist?.trim() || `${name}v${version}`
|
||||||
const buildConfig = {
|
const buildConfig = {
|
||||||
web: {task: "devops-web", token: 'fLeOGSVIRs405Me'},
|
web: {task: "devops-web", token: 'fLeOGSVIRs405Me'},
|
||||||
|
wxwork: {task: "devops-h5", token: 'fLeOGSVIRs405Me'},
|
||||||
}[info.type]
|
}[info.type]
|
||||||
let currentJob = 1
|
let currentJob = 1
|
||||||
startUpdateSql()
|
startUpdateSql()
|
||||||
|
|||||||
Reference in New Issue
Block a user