Browse Source

工具脚本优化

beiguoxia 3 years ago
parent
commit
846e05885e
1 changed files with 9 additions and 1 deletions
  1. 9 1
      GameClient/Assets/Editor/ToolsMenu.cs

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

@@ -43,6 +43,10 @@ namespace GFGEditor
         {
             UpdateExcel();
             ImportExcel();
+            if (CommitWhenRelease)
+            {
+                CommitProject();
+            }
         }
 
         [MenuItem("策划/更新并导入美术资源", false, (int)TOOL_MENU_PRIORITY.UpdateAndImportArtRes)]
@@ -50,6 +54,10 @@ namespace GFGEditor
         {
             UpdateArtRes();
             ImportArtRes();
+            if (CommitWhenRelease)
+            {
+                CommitProject();
+            }
         }
 
         [MenuItem("策划/更新至内网版本", false, (int)TOOL_MENU_PRIORITY.BuildBundlesRes)]
@@ -64,7 +72,7 @@ namespace GFGEditor
             }
         }
 
-        [MenuItem("策划/其它/更新项目", false, (int)TOOL_MENU_PRIORITY.UpdateProject)]
+        [MenuItem("策划/其它/更新项目(会丢弃未推送内容)", false, (int)TOOL_MENU_PRIORITY.UpdateProject)]
         static void UpdateProject()
         {
             SQLiteHelper.Instance.CloseConnection();