|
@@ -5,6 +5,7 @@ using System.IO;
|
|
using UnityEditor;
|
|
using UnityEditor;
|
|
using UnityEditor.Compilation;
|
|
using UnityEditor.Compilation;
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
|
|
+using VEngine.Editor.Builds;
|
|
|
|
|
|
namespace GFGEditor
|
|
namespace GFGEditor
|
|
{
|
|
{
|
|
@@ -233,5 +234,25 @@ namespace GFGEditor
|
|
CommitWhenRelease = true;
|
|
CommitWhenRelease = true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ [MenuItem("Tools/BuildTest/发布临时版本", false, (int)TOOL_MENU_PRIORITY.BuildBundlesRes)]
|
|
|
|
+ public static void BuildBundlesResTemp()
|
|
|
|
+ {
|
|
|
|
+ VEngine.Utility.buildPath = "Bundles_temp";
|
|
|
|
+ ImportArtResTool.ResRootDirNameDressUp = "正式资源-demo1";
|
|
|
|
+ EditorUtility.DisplayProgressBar("进度", "正在发布临时版本", 1);
|
|
|
|
+ VEngine.Editor.Builds.BuildScript.BuildCustomBundles(new string[] { "Res", "ResIn" });
|
|
|
|
+ EditorUtility.ClearProgressBar();
|
|
|
|
+ VEngine.Utility.buildPath = "Bundles";
|
|
|
|
+ ImportArtResTool.ResRootDirNameDressUp = "正式资源";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ [MenuItem("XAssets/Versions/Copy To StreamingAssets Temp")]
|
|
|
|
+ public static void CopyToStreamingAssets()
|
|
|
|
+ {
|
|
|
|
+ VEngine.Utility.buildPath = "Bundles_temp";
|
|
|
|
+ BuildScript.CopyToStreamingAssets();
|
|
|
|
+ VEngine.Utility.buildPath = "Bundles";
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|