From a95697088bb68d63dbfd06ff5eff781a2fea0b4d Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 24 Dec 2022 22:03:29 +0800 Subject: [PATCH] update editor code --- .../AssetBundleBuilder/AssetBundleSimulateBuilder.cs | 2 +- .../AssetBundleBuilder/BuildTasks/TaskCopyBuildinFiles.cs | 6 +++--- .../BuildTasks/TaskCreatePatchManifest.cs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs index a325d5c..e9d4df7 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleSimulateBuilder.cs @@ -23,7 +23,7 @@ namespace YooAsset.Editor var buildResult = builder.Run(buildParameters); if (buildResult.Success) { - string manifestFileName = YooAssetSettingsData.GetPatchManifestBinaryFileName(buildParameters.PackageName, buildParameters.PackageVersion); + string manifestFileName = YooAssetSettingsData.GetManifestBinaryFileName(buildParameters.PackageName, buildParameters.PackageVersion); string manifestFilePath = $"{buildResult.OutputPackageDirectory}/{manifestFileName}"; return manifestFilePath; } diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCopyBuildinFiles.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCopyBuildinFiles.cs index 433b62c..20b883d 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCopyBuildinFiles.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCopyBuildinFiles.cs @@ -45,7 +45,7 @@ namespace YooAsset.Editor // 拷贝补丁清单文件 { - string fileName = YooAssetSettingsData.GetPatchManifestBinaryFileName(buildPackageName, buildPackageVersion); + string fileName = YooAssetSettingsData.GetManifestBinaryFileName(buildPackageName, buildPackageVersion); string sourcePath = $"{packageOutputDirectory}/{fileName}"; string destPath = $"{streamingAssetsDirectory}/{fileName}"; EditorTools.CopyFile(sourcePath, destPath, true); @@ -53,7 +53,7 @@ namespace YooAsset.Editor // 拷贝补丁清单哈希文件 { - string fileName = YooAssetSettingsData.GetPatchManifestHashFileName(buildPackageName, buildPackageVersion); + string fileName = YooAssetSettingsData.GetPackageHashFileName(buildPackageName, buildPackageVersion); string sourcePath = $"{packageOutputDirectory}/{fileName}"; string destPath = $"{streamingAssetsDirectory}/{fileName}"; EditorTools.CopyFile(sourcePath, destPath, true); @@ -61,7 +61,7 @@ namespace YooAsset.Editor // 拷贝补丁清单版本文件 { - string fileName = YooAssetSettingsData.GetPatchManifestVersionFileName(buildPackageName); + string fileName = YooAssetSettingsData.GetPackageVersionFileName(buildPackageName); string sourcePath = $"{packageOutputDirectory}/{fileName}"; string destPath = $"{streamingAssetsDirectory}/{fileName}"; EditorTools.CopyFile(sourcePath, destPath, true); diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs index 1e0ae3a..2982c84 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreatePatchManifest.cs @@ -54,7 +54,7 @@ namespace YooAsset.Editor // 创建补丁清单文本文件 { - string fileName = YooAssetSettingsData.GetPatchManifestJsonFileName(buildParameters.PackageName, buildParameters.PackageVersion); + string fileName = YooAssetSettingsData.GetManifestJsonFileName(buildParameters.PackageName, buildParameters.PackageVersion); string filePath = $"{packageOutputDirectory}/{fileName}"; PatchManifestTools.SerializeToJson(filePath, patchManifest); BuildRunner.Log($"创建补丁清单文件:{filePath}"); @@ -63,7 +63,7 @@ namespace YooAsset.Editor // 创建补丁清单二进制文件 string packageHash; { - string fileName = YooAssetSettingsData.GetPatchManifestBinaryFileName(buildParameters.PackageName, buildParameters.PackageVersion); + string fileName = YooAssetSettingsData.GetManifestBinaryFileName(buildParameters.PackageName, buildParameters.PackageVersion); string filePath = $"{packageOutputDirectory}/{fileName}"; PatchManifestTools.SerializeToBinary(filePath, patchManifest); packageHash = HashUtility.FileMD5(filePath); @@ -77,7 +77,7 @@ namespace YooAsset.Editor // 创建补丁清单哈希文件 { - string fileName = YooAssetSettingsData.GetPatchManifestHashFileName(buildParameters.PackageName, buildParameters.PackageVersion); + string fileName = YooAssetSettingsData.GetPackageHashFileName(buildParameters.PackageName, buildParameters.PackageVersion); string filePath = $"{packageOutputDirectory}/{fileName}"; FileUtility.CreateFile(filePath, packageHash); BuildRunner.Log($"创建补丁清单哈希文件:{filePath}"); @@ -85,7 +85,7 @@ namespace YooAsset.Editor // 创建补丁清单版本文件 { - string fileName = YooAssetSettingsData.GetPatchManifestVersionFileName(buildParameters.PackageName); + string fileName = YooAssetSettingsData.GetPackageVersionFileName(buildParameters.PackageName); string filePath = $"{packageOutputDirectory}/{fileName}"; FileUtility.CreateFile(filePath, buildParameters.PackageVersion); BuildRunner.Log($"创建补丁清单版本文件:{filePath}");