From 1253ce71af7fd8e21c75c4916e3399c638c71677 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 3 Aug 2022 16:39:36 +0800 Subject: [PATCH] Update AssetBundleBuilder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 构建结果增加输出的补丁包目录。 --- .../YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilder.cs | 1 + .../Editor/AssetBundleBuilder/BuildSystem/BuildResult.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilder.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilder.cs index 2136ce5..2358427 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilder.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilder.cs @@ -80,6 +80,7 @@ namespace YooAsset.Editor var buildResult = BuildRunner.Run(pipeline, _buildContext); if (buildResult.Success) { + buildResult.OutputPackageDirectory = buildParametersContext.GetPackageDirectory(); Debug.Log($"{buildParameters.BuildMode} pipeline build succeed !"); } else diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildSystem/BuildResult.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildSystem/BuildResult.cs index 619db33..c47623d 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildSystem/BuildResult.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildSystem/BuildResult.cs @@ -20,5 +20,10 @@ namespace YooAsset.Editor /// 构建失败的信息 /// public string FailedInfo; + + /// + /// 输出的补丁包目录 + /// + public string OutputPackageDirectory; } } \ No newline at end of file