Browse Source

📦 修改更新脚本

imengyu 3 weeks ago
parent
commit
72b50c6a3f
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/scripts/UpdateScript/postUpdate.mjs

+ 4 - 3
src/scripts/UpdateScript/postUpdate.mjs

@@ -333,11 +333,11 @@ export async function postWebUpdate(axiosInstance, param) {
         const subPath = subPrefix + '/' + file;
         if (checkPathSkip(subPath))
           continue;
-        const filestat = await stat(path + subPath);
+        const filestat = await stat(distDir + subPath);
         if (filestat.isDirectory()) {
-          await loopDir(path + subPath, subPath);
+          await loopDir(distDir + subPath, subPath);
         } else {
-          archive.file(path + subPath, { name: file });
+          archive.file(distDir + subPath, { name: file });
         }
       }
     }
@@ -404,6 +404,7 @@ export async function postWebUpdate(axiosInstance, param) {
       bar1.update(Math.floor(i / multuploadInfo.allChunks * 100));
     }
 
+    bar1.update(100);
     bar1.stop();
 
     submitConfig.multuploadedKey = multuploadInfo.key;