xiongzhu 4 years ago
parent
commit
810a7864fd
1 changed files with 15 additions and 0 deletions
  1. 15 0
      gulpfile.js

+ 15 - 0
gulpfile.js

@@ -1559,6 +1559,18 @@ function make_def_config(cb) {
         JSON.stringify(externalDataSources, null, 4)
     );
 
+    let manifest = fs
+        .readFileSync(
+            path.resolve(
+                __dirname,
+                "target",
+                "o2server",
+                "commons",
+                "ext",
+                "manifest.cfg"
+            )
+        )
+        .toString();
     fs.readdirSync(path.resolve(__dirname, "jar")).forEach((child) => {
         if (/^.+\.jar$/i.test(child)) {
             fs.copyFileSync(
@@ -1572,6 +1584,9 @@ function make_def_config(cb) {
                     child
                 )
             );
+            if (!manifest.includes(child)) {
+                manifest += "\n" + child;
+            }
         }
     });