소스 검색

📦 修改更新脚本

imengyu 3 주 전
부모
커밋
c3181f6b07
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 });
         }
       }
     }