修改
This commit is contained in:
parent
3566d135af
commit
7eccb391e9
@ -59,7 +59,8 @@ public static class AppBuildHelper
|
||||
HandleBuildReport(report);
|
||||
if (showExplorer)
|
||||
{
|
||||
OpenFolder.Execute(report.summary.outputPath);
|
||||
DirectoryInfo directoryInfo = Directory.GetParent(report.summary.outputPath);
|
||||
if (directoryInfo != null) OpenFolder.Execute(directoryInfo.FullName);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
@ -44,9 +44,35 @@ public class ResourceBuildParameter
|
||||
public string OutputPath;
|
||||
public ResourceBuildMode BuildMode;
|
||||
|
||||
|
||||
public ECompressOption CompressOption = ECompressOption.LZ4;
|
||||
public EFileNameStyle FileNameStyle = EFileNameStyle.BundleName_HashName;
|
||||
|
||||
/// <summary>
|
||||
/// 从文件头里剥离Unity版本信息
|
||||
/// </summary>
|
||||
public bool StripUnityVersion = false;
|
||||
|
||||
/// <summary>
|
||||
/// 禁止写入类型树结构(可以降低包体和内存并提高加载效率)
|
||||
/// </summary>
|
||||
public bool DisableWriteTypeTree = false;
|
||||
|
||||
/// <summary>
|
||||
/// 忽略类型树变化(无效参数)
|
||||
/// </summary>
|
||||
public bool IgnoreTypeTreeChanges = true;
|
||||
|
||||
/// <summary>
|
||||
/// 使用可寻址地址代替资源路径
|
||||
/// 说明:开启此项可以节省运行时清单占用的内存!
|
||||
/// </summary>
|
||||
public bool ReplaceAssetPathWithAddress = false;
|
||||
|
||||
/// <summary>
|
||||
/// 自动建立资源对象对图集的依赖关系
|
||||
/// </summary>
|
||||
public bool TrackSpriteAtlasDependencies = false;
|
||||
|
||||
public string EncryptionServiceType = "AlicizaX.Resource.Editor.FileOffsetEncryption";
|
||||
}
|
||||
|
||||
|
||||
@ -56,7 +56,12 @@ public static class ResourceBuildHelper
|
||||
BuildinFileCopyParams = copyParams,
|
||||
EnableSharePackRule = EnableSharePack,
|
||||
FileNameStyle = buildParameter.FileNameStyle,
|
||||
EncryptionServices = CreateEncryptionInstance(buildParameter.EncryptionServiceType)
|
||||
EncryptionServices = CreateEncryptionInstance(buildParameter.EncryptionServiceType),
|
||||
ReplaceAssetPathWithAddress = buildParameter.ReplaceAssetPathWithAddress,
|
||||
StripUnityVersion = buildParameter.StripUnityVersion,
|
||||
DisableWriteTypeTree = buildParameter.DisableWriteTypeTree,
|
||||
IgnoreTypeTreeChanges = buildParameter.IgnoreTypeTreeChanges,
|
||||
TrackSpriteAtlasDependencies = buildParameter.TrackSpriteAtlasDependencies,
|
||||
};
|
||||
|
||||
ScriptableBuildPipeline pipeline = new ScriptableBuildPipeline();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user