From d94d196c8338990e4ca2ce981cf31458f73858f4 Mon Sep 17 00:00:00 2001 From: hevinci Date: Sun, 31 Jul 2022 22:51:40 +0800 Subject: [PATCH] Update AssetBundleBuilder --- .../Editor/AssetBundleBuilder/AssetBundleBuilderHelper.cs | 2 +- .../BuildTasks/TaskCreatePatchPackage.cs | 8 ++++---- Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderHelper.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderHelper.cs index fc1e8a2..02ebf79 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderHelper.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderHelper.cs @@ -30,7 +30,7 @@ namespace YooAsset.Editor /// public static string MakePipelineOutputDirectory(string outputRoot, BuildTarget buildTarget) { - return $"{outputRoot}/{buildTarget}/{YooAssetSettingsData.Setting.UnityManifestFileName}"; + return $"{outputRoot}/{buildTarget}/{YooAssetSettingsData.Setting.OutputFolderName}"; } /// diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchPackage.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchPackage.cs index d038a2c..58ea164 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchPackage.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchPackage.cs @@ -75,15 +75,15 @@ namespace YooAsset.Editor { // 拷贝UnityManifest序列化文件 { - string sourcePath = $"{buildParameters.PipelineOutputDirectory}/{YooAssetSettingsData.Setting.UnityManifestFileName}"; - string destPath = $"{packageDirectory}/{YooAssetSettingsData.Setting.UnityManifestFileName}"; + string sourcePath = $"{buildParameters.PipelineOutputDirectory}/{YooAssetSettingsData.Setting.OutputFolderName}"; + string destPath = $"{packageDirectory}/{YooAssetSettingsData.Setting.OutputFolderName}"; EditorTools.CopyFile(sourcePath, destPath, true); } // 拷贝UnityManifest文本文件 { - string sourcePath = $"{buildParameters.PipelineOutputDirectory}/{YooAssetSettingsData.Setting.UnityManifestFileName}.manifest"; - string destPath = $"{packageDirectory}/{YooAssetSettingsData.Setting.UnityManifestFileName}.manifest"; + string sourcePath = $"{buildParameters.PipelineOutputDirectory}/{YooAssetSettingsData.Setting.OutputFolderName}.manifest"; + string destPath = $"{packageDirectory}/{YooAssetSettingsData.Setting.OutputFolderName}.manifest"; EditorTools.CopyFile(sourcePath, destPath, true); } } diff --git a/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs b/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs index 9325c37..89ad779 100644 --- a/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs +++ b/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs @@ -20,11 +20,11 @@ namespace YooAsset /// public string PatchManifestFileName = "PatchManifest"; - /// - /// 构建输出的Unity清单文件名称 - /// - public string UnityManifestFileName = "UnityManifest"; + /// + /// 构建输出文件夹名称 + /// + public const string OutputFolderName = "OutputCache"; /// /// 构建输出的报告文件