|
@@ -10,6 +10,8 @@ namespace GFGEditor
|
|
|
{
|
|
|
public class ToolsMenu : Editor
|
|
|
{
|
|
|
+ public static bool CommitWhenRelease = true;
|
|
|
+
|
|
|
enum TOOL_MENU_PRIORITY
|
|
|
{
|
|
|
UpdateAndImportAll,
|
|
@@ -50,7 +52,10 @@ namespace GFGEditor
|
|
|
EditorUtility.DisplayProgressBar("进度", "正在更新至内网", 1);
|
|
|
VEngine.Editor.Builds.BuildScript.BuildCustomBundles(new string[] { "Res", "ResIn" });
|
|
|
EditorUtility.ClearProgressBar();
|
|
|
- CommitProject();
|
|
|
+ if(CommitWhenRelease)
|
|
|
+ {
|
|
|
+ CommitProject();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[MenuItem("策划/其它/更新项目", false, (int)TOOL_MENU_PRIORITY.UpdateProject)]
|
|
@@ -202,13 +207,17 @@ namespace GFGEditor
|
|
|
[MenuItem("Tools/BuildTest/SetBundlesResTestDir")]
|
|
|
public static void SetBundlesResTestDir()
|
|
|
{
|
|
|
- VEngine.Utility.buildPath = "Bundles1";
|
|
|
+ VEngine.Utility.buildPath = "Bundles_temp";
|
|
|
+ ImportArtResTool.ResRootDirName = "正式资源-demo1";
|
|
|
+ CommitWhenRelease = false;
|
|
|
}
|
|
|
|
|
|
[MenuItem("Tools/BuildTest/ResetBundlesResDir")]
|
|
|
public static void ResetBundlesResTestDir()
|
|
|
{
|
|
|
VEngine.Utility.buildPath = "Bundles";
|
|
|
+ ImportArtResTool.ResRootDirName = "正式资源";
|
|
|
+ CommitWhenRelease = true;
|
|
|
}
|
|
|
|
|
|
}
|