Преглед на файлове

更新资源工具脚本

guodong преди 2 години
родител
ревизия
b2b93a9423

+ 1 - 4
GameClient/Assets/Editor/Bat/updateGame.bat

@@ -1,7 +1,4 @@
-cd ../../../Assets/Res
-svn up --force --accept tc
-
-cd ../../../
+cd ../../../../
 git clean -df
 git reset --hard
 git status

+ 2 - 0
GameClient/Assets/Editor/Bat/updateGameRes.bat

@@ -0,0 +1,2 @@
+cd ../../../Assets/Res
+svn up --force --accept tc

+ 7 - 0
GameClient/Assets/Editor/Bat/updateGameRes.bat.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 12c58c93f9b3883429c64694e499eee1
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 7 - 0
GameClient/Assets/Editor/ToolsMenu.cs

@@ -66,6 +66,7 @@ namespace GFGEditor
         [MenuItem("策划/更新并导入美术资源", false, (int)TOOL_MENU_PRIORITY.UpdateAndImportArtRes)]
         static void UpdateAndImportArtResAndCommit()
         {
+            UpdateProjectRes();
             UpdateAndImportArtRes();
             if (CommitWhenRelease)
             {
@@ -94,6 +95,7 @@ namespace GFGEditor
             Thread.Sleep(1000);
             EditorUtility.DisplayProgressBar("进度", "正在更新项目", 1);
             ProcessUtil.ExcuteBat("Assets/Editor/Bat/", "updateGame.bat");
+            UpdateProjectRes();
             EditorUtility.ClearProgressBar();
         }
 
@@ -125,6 +127,11 @@ namespace GFGEditor
         }
 #endif
 
+        private static void UpdateProjectRes()
+        {
+            ProcessUtil.ExcuteBat("Assets/Editor/Bat/", "updateGameRes.bat");
+        }
+
         public static void UpdateExcel()
         {
             EditorUtility.DisplayProgressBar("进度", "正在更新表格", 1);