Browse Source

修改ResBuilder默认只打包GameEditor数据,且不压缩

大爷 2 years ago
parent
commit
0b6cef86e8

+ 5 - 5
ResBuilder/Program.cs

@@ -15,12 +15,12 @@ namespace ResBuilder
         const string uiXmlFileRootRelative = @"ui_edit\xmds_ui";
         const string uiResFileRootRelative = @"ui_edit\res";
 
-        const string editorDataRoot = @"GameEditor\data";
+        const string editorDataRoot = @"../data";
 
 
         static void Main(string[] args)
         {
-            var root = Tools.FindUpDirectory("GameEditors", 10);
+            var root = "./";//Tools.FindUpDirectory("GameEditors", 10);
             if (string.IsNullOrEmpty(root))
             {
                 Console.WriteLine("error:找不到GameEditors目录!");
@@ -130,7 +130,7 @@ namespace ResBuilder
 
         public static bool IsPauseOnFinish = true;
 
-        public static bool IsDoLua = true;
+        public static bool IsDoLua = false;
 
         public static bool IsJitLuaBytes = false;
 
@@ -142,9 +142,9 @@ namespace ResBuilder
 
         public static bool IsPackUIXml = false;
 
-        public static bool IsUIConvertBin = true;
+        public static bool IsUIConvertBin = false;
 
-        public static bool IsDoUIRes = true;
+        public static bool IsDoUIRes = false;
 
         public static bool IsPackUiRes = false;
 

+ 1 - 1
ResBuilder/ResBuilder.csproj

@@ -19,7 +19,7 @@
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
+    <OutputPath>..\GameEditor\bin\Debug\</OutputPath>
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>

BIN
ResBuilder/bin/Debug/ResBuilder.exe


+ 1 - 1
ResBuilder/packer/editor/EditorBinPacker.cs

@@ -48,7 +48,7 @@ namespace ResBuilder
                 {
                     bw.Write(f.Value);
                 }
-                WritFile(ms.ToArray(), "e1.bin" , true);
+                WritFile(ms.ToArray(), "e1.bin" , false);
             }
             // -- e2.bin
             WritFile(PackSceneData(), "ex.bin" , false);