扩展 GenerateStripedAOTDlls 支持传入 BuildPlayerOptions 中的assetBundleManifestPath属性

The path to an manifest file describing all of the asset bundles used in the build (optional).
pull/57/head
JunQiang 2025-09-10 11:00:52 +08:00
parent d505624c78
commit 664e48dbe3
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,7 @@ namespace HybridCLR.Editor.Commands
}
}
public static void GenerateStripedAOTDlls(BuildTarget target)
public static void GenerateStripedAOTDlls(BuildTarget target, string assetBundleManifestPath = null)
{
string outputPath = $"{SettingsUtil.HybridCLRDataDir}/StrippedAOTDllsTempProj/{target}";
BashUtil.RemoveDir(outputPath);
@ -140,6 +140,10 @@ namespace HybridCLR.Editor.Commands
subtarget = (int)StandaloneBuildSubtarget.Server,
#endif
};
if (!string.IsNullOrEmpty(assetBundleManifestPath))
{
buildPlayerOptions.assetBundleManifestPath = assetBundleManifestPath;
}
var report = BuildPipeline.BuildPlayer(buildPlayerOptions);