[fix] 修改StandaloneLinux平台dll路径 (#35)

main
yanbing.zhou 2023-09-17 20:58:18 +08:00 committed by GitHub
parent 06a250b9fa
commit 260909bd4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -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:

View File

@ -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";