优化下载打包

This commit is contained in:
aixianling
2022-12-28 16:20:18 +08:00
parent 236ff91eaf
commit 4988586397
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ module.exports = {
let id = request.query?.id
dbUtils.detail({table: 'node_custom_config', id}).then(info => {
if (info?.id) {
let path = `${info.dist || `../zips/${id}`}`, zipPath = `../zips/${info.id}.zip`
let path = `${info.dist || `../zips/${info.name}v${info.version}`}`, zipPath = `../zips/${info.id}.zip`
fse.removeSync(zipPath)
fse.pathExists(path, (err, exists) => {
console.log(`${path}=========>${exists}`)

View File

@@ -17,7 +17,7 @@ module.exports = {
mp: 'dvcp_v2_wxmp'
}[info.type] || {}
const path = `../${buildPath}`,
{dist = `../zips/${id}`} = info
{dist = `../zips/${info.name}v${info.version}`} = info
Promise.all([
execute(`./shell/update.sh ${info.name} ${path}`),
db.query(sql)