Browse Source

工具脚本优化

beiguoxia 3 năm trước cách đây
mục cha
commit
cdb0312fe9

+ 0 - 7
GameClient/Assets/Editor/Bat/commitGame.bat

@@ -13,10 +13,3 @@ git add .
 git commit -am "公用机提交"
 git pull
 git push
-
-cd GameClient/Bundles
-svn add . --force
-svn ci -m "公用机提交"
-
-echo 请检查是否有冲突,如有请联系程序!
-pause

+ 12 - 1
GameClient/Assets/Editor/ToolsMenu.cs

@@ -32,6 +32,10 @@ namespace GFGEditor
             UpdateProject();
             UpdateAndImportArtRes();
             UpdateAndImportExcel();
+            if (CommitWhenRelease)
+            {
+                CommitProject();
+            }
         }
 
         [MenuItem("策划/更新并导入Excel", false, (int)TOOL_MENU_PRIORITY.UpdateAndImportExcel)]
@@ -56,7 +60,7 @@ namespace GFGEditor
             EditorUtility.ClearProgressBar();
             if (CommitWhenRelease)
             {
-                CommitProject();
+                CommitBundles();
             }
         }
 
@@ -96,6 +100,13 @@ namespace GFGEditor
             EditorUtility.ClearProgressBar();
         }
 
+        static void CommitBundles()
+        {
+            EditorUtility.DisplayProgressBar("进度", "正在提交Bundles", 1);
+            ProcessUtil.ExcuteBat("Assets/Editor/Bat/", "commitBundles.bat");
+            EditorUtility.ClearProgressBar();
+        }
+
         [MenuItem("策划/其它/导入配置表", false, (int)TOOL_MENU_PRIORITY.ImportExcel)]
         public static void ImportExcel()
         {