xiongzhu 4 년 전
부모
커밋
11c2a6f8ac
1개의 변경된 파일6개의 추가작업 그리고 7개의 파일을 삭제
  1. 6 7
      gulpfile.js

+ 6 - 7
gulpfile.js

@@ -1505,17 +1505,16 @@ if (os.platform().indexOf("win") == -1) {
 }
 }
 
 
 function make_def_config(cb) {
 function make_def_config(cb) {
+    if (
+        !fs.existsSync(path.resolve(__dirname, "target", "o2server", "config"))
+    ) {
+        fs.mkdirSync(path.resolve(__dirname, "target", "o2server", "config"));
+    }
     fs.readdirSync(path.resolve(__dirname, "config")).forEach((child) => {
     fs.readdirSync(path.resolve(__dirname, "config")).forEach((child) => {
         if (/.+\.json/.test(child)) {
         if (/.+\.json/.test(child)) {
             fs.copyFileSync(
             fs.copyFileSync(
                 path.resolve(__dirname, "config", child),
                 path.resolve(__dirname, "config", child),
-                path.resolve(
-                    __dirname,
-                    "target",
-                    "o2server",
-                    "config",
-                    child
-                )
+                path.resolve(__dirname, "target", "o2server", "config", child)
             );
             );
         }
         }
     });
     });