From 664e48dbe3223dcafb45c6b2b69e215c1f53fa42 Mon Sep 17 00:00:00 2001 From: JunQiang Date: Wed, 10 Sep 2025 11:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A9=E5=B1=95=20GenerateStripedAOTDlls=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=BC=A0=E5=85=A5=20BuildPlayerOptions=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84assetBundleManifestPath=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The path to an manifest file describing all of the asset bundles used in the build (optional). --- Editor/Commands/StripAOTDllCommand.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Editor/Commands/StripAOTDllCommand.cs b/Editor/Commands/StripAOTDllCommand.cs index 09a6f73..ebcb77d 100644 --- a/Editor/Commands/StripAOTDllCommand.cs +++ b/Editor/Commands/StripAOTDllCommand.cs @@ -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);