From 260909bd4b5fe850eb2221273e5b67a3f38edd26 Mon Sep 17 00:00:00 2001 From: "yanbing.zhou" <38662532+ghzh26252@users.noreply.github.com> Date: Sun, 17 Sep 2023 20:58:18 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E6=94=B9StandaloneLinux?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0dll=E8=B7=AF=E5=BE=84=20(#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs | 4 +++- Runtime/RuntimeApi.cs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs b/Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs index 3eb2746..3e290b5 100644 --- a/Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs +++ b/Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -30,6 +30,8 @@ namespace HybridCLR.Editor.BuildProcessors case BuildTarget.StandaloneWindows: case BuildTarget.StandaloneWindows64: return $"{projectDir}/Library/Bee/artifacts/WinPlayerBuildProgram/ManagedStripped"; + case BuildTarget.StandaloneLinux64: + return $"{projectDir}/Library/Bee/artifacts/LinuxPlayerBuildProgram/ManagedStripped"; case BuildTarget.Android: return $"{projectDir}/Library/Bee/artifacts/Android/ManagedStripped"; case BuildTarget.iOS: diff --git a/Runtime/RuntimeApi.cs b/Runtime/RuntimeApi.cs index 50be172..7f1bd53 100644 --- a/Runtime/RuntimeApi.cs +++ b/Runtime/RuntimeApi.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; @@ -10,9 +10,9 @@ namespace HybridCLR { public static class RuntimeApi { -#if UNITY_STANDALONE_WIN +#if UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX private const string dllName = "GameAssembly"; -#elif UNITY_ANDROID || UNITY_STANDALONE_LINUX +#elif UNITY_ANDROID private const string dllName = "il2cpp"; #else private const string dllName = "__Internal";