From d6984f0ad46e8be5fbf17146b6aeedf6d4dc0c5b Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 17 Dec 2022 18:08:38 +0800 Subject: [PATCH] update editor code --- .../BuildTasks/TaskCreatePatchManifest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs index 4dbb2c6..4a5851c 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs @@ -55,7 +55,7 @@ namespace YooAsset.Editor { string fileName = YooAssetSettingsData.GetPatchManifestJsonFileName(buildParameters.PackageName, buildParameters.PackageVersion); string filePath = $"{packageOutputDirectory}/{fileName}"; - PatchManifest.SerializeToJson(filePath, patchManifest); + PatchManifestTools.SerializeToJson(filePath, patchManifest); BuildRunner.Log($"创建补丁清单文件:{filePath}"); } @@ -64,13 +64,13 @@ namespace YooAsset.Editor { string fileName = YooAssetSettingsData.GetPatchManifestBinaryFileName(buildParameters.PackageName, buildParameters.PackageVersion); string filePath = $"{packageOutputDirectory}/{fileName}"; - PatchManifest.SerializeToBinary(filePath, patchManifest); + PatchManifestTools.SerializeToBinary(filePath, patchManifest); packageHash = HashUtility.FileMD5(filePath); BuildRunner.Log($"创建补丁清单文件:{filePath}"); PatchManifestContext patchManifestContext = new PatchManifestContext(); byte[] bytesData = FileUtility.ReadAllBytes(filePath); - patchManifestContext.Manifest = PatchManifest.DeserializeFromBinary(bytesData); + patchManifestContext.Manifest = PatchManifestTools.DeserializeFromBinary(bytesData); context.SetContextObject(patchManifestContext); }