Update AssetBundleBuilder

移除对增量更新初次无法构建的限制
pull/28/head
hevinci 2022-07-22 12:55:20 +08:00
parent 1370ffb3bb
commit 2d5854ed58
1 changed files with 15 additions and 15 deletions

View File

@ -42,9 +42,8 @@ namespace YooAsset.Editor
if (buildMode == EBuildMode.IncrementalBuild)
{
// 检测历史版本是否存在
if (AssetBundleBuilderHelper.HasAnyPackageVersion(buildParameters.Parameters.BuildTarget, buildParameters.Parameters.OutputRoot) == false)
throw new Exception("没有发现任何历史版本,请尝试强制重建");
if (AssetBundleBuilderHelper.HasAnyPackageVersion(buildParameters.Parameters.BuildTarget, buildParameters.Parameters.OutputRoot))
{
// 检测构建版本是否合法
int maxPackageVersion = AssetBundleBuilderHelper.GetMaxPackageVersion(buildParameters.Parameters.BuildTarget, buildParameters.Parameters.OutputRoot);
if (buildParameters.Parameters.BuildVersion <= maxPackageVersion)
@ -60,6 +59,7 @@ namespace YooAsset.Editor
if (buildParameters.Parameters.BuildinTags != oldPatchManifest.BuildinTags)
throw new Exception($"增量更新时内置资源标签必须一致:{buildParameters.Parameters.BuildinTags} != {oldPatchManifest.BuildinTags}");
}
}
// 如果是强制重建
if (buildMode == EBuildMode.ForceRebuild)