Bläddra i källkod

内网发布简化

guodong 2 år sedan
förälder
incheckning
762522c52b

+ 3 - 1
GameClient/Assets/YooAsset/Editor/AssetBundleBuilder/BuildParametersContext.cs

@@ -43,7 +43,9 @@ namespace YooAsset.Editor
 		{
 			if (string.IsNullOrEmpty(_packageOutputDirectory))
 			{
-				_packageOutputDirectory = $"{Parameters.BuildOutputRoot}/{Parameters.BuildTarget}/{Parameters.PackageName}/{Parameters.PackageVersion}";
+				//_packageOutputDirectory = $"{Parameters.BuildOutputRoot}/{Parameters.BuildTarget}/{Parameters.PackageName}/{Parameters.PackageVersion}";
+				//修改目录,简化打包流程
+				_packageOutputDirectory = $"{Parameters.BuildOutputRoot}/{Parameters.BuildTarget}/{Parameters.PackageName}";
 			}
 			return _packageOutputDirectory;
 		}

+ 4 - 4
GameClient/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskPrepare.cs

@@ -76,11 +76,11 @@ namespace YooAsset.Editor
 					}
 				}
 #endif
-
+				//屏蔽,不需要检查
 				// 检测包裹输出目录是否存在
-				string packageOutputDirectory = buildParametersContext.GetPackageOutputDirectory();
-				if (Directory.Exists(packageOutputDirectory))
-					throw new Exception($"本次构建的补丁目录已经存在:{packageOutputDirectory}");
+				//string packageOutputDirectory = buildParametersContext.GetPackageOutputDirectory();
+				//if (Directory.Exists(packageOutputDirectory))
+				//	throw new Exception($"本次构建的补丁目录已经存在:{packageOutputDirectory}");
 
 				// 保存改动的资源
 				AssetDatabase.SaveAssets();

+ 0 - 6
GameClient/Assets/YooAsset/Editor/GFGAsset/Collect/AssetBundleHelper.cs

@@ -121,12 +121,6 @@ namespace GFGEditor
             assetBundleCollector = null;
             _ruler = null;
 
-            int index = buildResult.OutputPackageDirectory.LastIndexOf("/");
-            string targetPath = buildResult.OutputPackageDirectory.Substring(0, index);
-            Debug.Log($"sourcePath {buildResult.OutputPackageDirectory}");
-            Debug.Log($"targetPath {targetPath}");
-            CopyFilesTo(buildResult.OutputPackageDirectory, targetPath);
-            Directory.Delete(buildResult.OutputPackageDirectory, true);
         }
 
         public static void CollectDynamicFile(string dirPath, string itemKey, string assetPath, bool autoMerge)