mirror of https://github.com/tuyoogame/YooAsset
parent
1471ca06f3
commit
e84e50708b
|
@ -94,7 +94,7 @@ namespace YooAsset.Editor
|
||||||
{
|
{
|
||||||
BuildLogger.Warning($"{buildParameters.BuildMode} pipeline build failed !");
|
BuildLogger.Warning($"{buildParameters.BuildMode} pipeline build failed !");
|
||||||
BuildLogger.Error($"Build task failed : {buildResult.FailedTask}");
|
BuildLogger.Error($"Build task failed : {buildResult.FailedTask}");
|
||||||
BuildLogger.Error($"Build task error : {buildResult.FailedInfo}");
|
BuildLogger.Error(buildResult.ErrorInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
return buildResult;
|
return buildResult;
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace YooAsset.Editor
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 构建失败的信息
|
/// 构建失败的信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string FailedInfo;
|
public string ErrorInfo;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 输出的补丁包目录
|
/// 输出的补丁包目录
|
||||||
|
|
|
@ -52,7 +52,7 @@ namespace YooAsset.Editor
|
||||||
{
|
{
|
||||||
EditorTools.ClearProgressBar();
|
EditorTools.ClearProgressBar();
|
||||||
buildResult.FailedTask = task.GetType().Name;
|
buildResult.FailedTask = task.GetType().Name;
|
||||||
buildResult.FailedInfo = e.ToString();
|
buildResult.ErrorInfo = e.ToString();
|
||||||
buildResult.Success = false;
|
buildResult.Success = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,16 @@ namespace YooAsset.Editor
|
||||||
throw new Exception("首包资源标签不能为空!");
|
throw new Exception("首包资源标签不能为空!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if UNITY_WEBGL
|
||||||
|
if (buildParameters.EncryptionServices != null)
|
||||||
|
{
|
||||||
|
if (buildParameters.EncryptionServices.GetType() != typeof(EncryptionNone))
|
||||||
|
{
|
||||||
|
throw new Exception("WebGL平台不支持加密!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// 检测包裹输出目录是否存在
|
// 检测包裹输出目录是否存在
|
||||||
string packageOutputDirectory = buildParametersContext.GetPackageOutputDirectory();
|
string packageOutputDirectory = buildParametersContext.GetPackageOutputDirectory();
|
||||||
if (Directory.Exists(packageOutputDirectory))
|
if (Directory.Exists(packageOutputDirectory))
|
||||||
|
|
Loading…
Reference in New Issue