[fix] 修复在某些不支持visionOS的Unity版本上CopyStrippedAOTAssemblies类有编译错误的bug

main
walon 2024-06-10 12:44:52 +08:00
parent b977a85b23
commit e4cf9e9086
1 changed files with 7 additions and 3 deletions

View File

@ -38,11 +38,13 @@ namespace HybridCLR.Editor.BuildProcessors
case BuildTarget.Android: case BuildTarget.Android:
return $"{projectDir}/Library/Bee/artifacts/Android/ManagedStripped"; return $"{projectDir}/Library/Bee/artifacts/Android/ManagedStripped";
case BuildTarget.iOS: case BuildTarget.iOS:
#if UNITY_TVOS
case BuildTarget.tvOS: case BuildTarget.tvOS:
#if UNITY_2022_3_OR_NEWER && !TUANJIE_2022_3_OR_NEWER && !UNITY_2023 #endif
#if UNITY_VISIONOS
case BuildTarget.VisionOS: case BuildTarget.VisionOS:
#endif #endif
return $"{projectDir}/Library/Bee/artifacts/iOS/ManagedStripped"; return $"{projectDir}/Library/Bee/artifacts/iOS/ManagedStripped";
case BuildTarget.WebGL: case BuildTarget.WebGL:
return $"{projectDir}/Library/Bee/artifacts/WebGL/ManagedStripped"; return $"{projectDir}/Library/Bee/artifacts/WebGL/ManagedStripped";
case BuildTarget.StandaloneOSX: case BuildTarget.StandaloneOSX:
@ -51,9 +53,11 @@ namespace HybridCLR.Editor.BuildProcessors
return $"{projectDir}/Library/Bee/artifacts/PS4PlayerBuildProgram/ManagedStripped"; return $"{projectDir}/Library/Bee/artifacts/PS4PlayerBuildProgram/ManagedStripped";
case BuildTarget.PS5: case BuildTarget.PS5:
return $"{projectDir}/Library/Bee/artifacts/PS5PlayerBuildProgram/ManagedStripped"; return $"{projectDir}/Library/Bee/artifacts/PS5PlayerBuildProgram/ManagedStripped";
#if TUANJIE_2022_3_OR_NEWER #if UNITY_WEIXINMINIGAME
case BuildTarget.WeixinMiniGame: case BuildTarget.WeixinMiniGame:
return $"{projectDir}/Library/Bee/artifacts/WeixinMiniGame/ManagedStripped"; return $"{projectDir}/Library/Bee/artifacts/WeixinMiniGame/ManagedStripped";
#endif
#if UNITY_OPENHARMONY
case BuildTarget.OpenHarmony: case BuildTarget.OpenHarmony:
return $"{projectDir}/Library/Bee/artifacts/OpenHarmonyPlayerBuildProgram/ManagedStripped"; return $"{projectDir}/Library/Bee/artifacts/OpenHarmonyPlayerBuildProgram/ManagedStripped";
#endif #endif