From aba68f859f52241666e13edcec4286f4367a55d7 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 15 Aug 2022 10:30:10 +0800 Subject: [PATCH] Update AssetBundleBuilder --- .../AssetBundleBuilder/BuildReport/ReportBundleInfo.cs | 5 ----- .../AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs | 3 +-- .../Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/ReportBundleInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/ReportBundleInfo.cs index 96ee204..632f53b 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/ReportBundleInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/ReportBundleInfo.cs @@ -33,11 +33,6 @@ namespace YooAsset.Editor /// public string FileName; - /// - /// 内容哈希值 - /// - public string ContentHash; - /// /// 文件哈希值 /// diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs index 3d3ab13..b91f3aa 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs @@ -74,7 +74,6 @@ namespace YooAsset.Editor foreach (var bundleInfo in buildMapContext.BundleInfos) { var bundleName = bundleInfo.BundleName; - string contentHash = bundleInfo.ContentHash; string fileHash = bundleInfo.FileHash; string fileCRC = bundleInfo.FileCRC; long fileSize = bundleInfo.FileSize; @@ -83,7 +82,7 @@ namespace YooAsset.Editor bool isBuildin = IsBuildinBundle(tags, buildinTags); bool isRawFile = bundleInfo.IsRawFile; - PatchBundle patchBundle = new PatchBundle(bundleName, contentHash, fileHash, fileCRC, fileSize, tags); + PatchBundle patchBundle = new PatchBundle(bundleName, fileHash, fileCRC, fileSize, tags); patchBundle.SetFlagsValue(isEncrypted, isBuildin, isRawFile); result.Add(patchBundle); } diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs index 56bfb88..27054f7 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs @@ -94,7 +94,6 @@ namespace YooAsset.Editor ReportBundleInfo reportBundleInfo = new ReportBundleInfo(); reportBundleInfo.BundleName = patchBundle.BundleName; reportBundleInfo.FileName = patchBundle.FileName; - reportBundleInfo.ContentHash = patchBundle.ContentHash; reportBundleInfo.FileHash = patchBundle.FileHash; reportBundleInfo.FileCRC = patchBundle.FileCRC; reportBundleInfo.FileSize = patchBundle.FileSize;