From 6116e49a0595a92f9192ddf90009f1ccb57c6f16 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 17 Oct 2022 16:04:08 +0800 Subject: [PATCH] Update AssetBundleBuilder --- Assets/YooAsset/Editor/AssetBundleBuilder/BuildParameters.cs | 5 +++++ .../AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildParameters.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildParameters.cs index 3e882f4..ccd7c7f 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildParameters.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildParameters.cs @@ -61,6 +61,11 @@ namespace YooAsset.Editor /// public string BuildPackage; + /// + /// 人类可读的版本信息 + /// + public string HumanReadableVersion; + /// /// 验证构建结果 diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs index 7350977..c3b6a49 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs @@ -31,6 +31,7 @@ namespace YooAsset.Editor patchManifest.EnableAddressable = buildParameters.EnableAddressable; patchManifest.OutputNameStyle = (int)buildParameters.OutputNameStyle; patchManifest.PackageName = buildParameters.BuildPackage; + patchManifest.HumanReadableVersion = buildParameters.HumanReadableVersion; patchManifest.BundleList = GetAllPatchBundle(context); patchManifest.AssetList = GetAllPatchAsset(context, patchManifest);