Explorar o código

📦 修改更新脚本

imengyu hai 3 semanas
pai
achega
c3181f6b07
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 });
         }
       }
     }