mirror of https://github.com/tuyoogame/YooAsset
parent
1370ffb3bb
commit
2d5854ed58
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue