Browse Source

📦 修改更新脚本

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

+ 2 - 2
src/scripts/UpdateScript/postUpdate.mjs

@@ -335,9 +335,9 @@ export async function postWebUpdate(axiosInstance, param) {
           continue;
         const filestat = await stat(path + subPath);
         if (filestat.isDirectory()) {
-          await loopDir(distDir + subPath, subPath);
+          await loopDir(path + subPath, subPath);
         } else {
-          archive.file(distDir + subPath, { name: file });
+          archive.file(path + subPath, { name: file });
         }
       }
     }