浏览代码

工具脚本优化

beiguoxia 3 年之前
父节点
当前提交
846e05885e
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      GameClient/Assets/Editor/ToolsMenu.cs

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

@@ -43,6 +43,10 @@ namespace GFGEditor
         {
         {
             UpdateExcel();
             UpdateExcel();
             ImportExcel();
             ImportExcel();
+            if (CommitWhenRelease)
+            {
+                CommitProject();
+            }
         }
         }
 
 
         [MenuItem("策划/更新并导入美术资源", false, (int)TOOL_MENU_PRIORITY.UpdateAndImportArtRes)]
         [MenuItem("策划/更新并导入美术资源", false, (int)TOOL_MENU_PRIORITY.UpdateAndImportArtRes)]
@@ -50,6 +54,10 @@ namespace GFGEditor
         {
         {
             UpdateArtRes();
             UpdateArtRes();
             ImportArtRes();
             ImportArtRes();
+            if (CommitWhenRelease)
+            {
+                CommitProject();
+            }
         }
         }
 
 
         [MenuItem("策划/更新至内网版本", false, (int)TOOL_MENU_PRIORITY.BuildBundlesRes)]
         [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()
         static void UpdateProject()
         {
         {
             SQLiteHelper.Instance.CloseConnection();
             SQLiteHelper.Instance.CloseConnection();