mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 14:17:51 +08:00
Adds new compile option
Adds new compile option for MelonLoader Il2Cpp Net6 Interop in addition to the preexisting Unhollower option.
This commit is contained in:
parent
1e1fb0e27b
commit
33f027f81e
23
build.ps1
23
build.ps1
@ -1,4 +1,4 @@
|
|||||||
# ----------- MelonLoader IL2CPP (net6) -----------
|
# ----------- MelonLoader IL2CPP Unhollower (net6) -----------
|
||||||
dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net6
|
dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net6
|
||||||
$Path = "Release\UnityExplorer.MelonLoader.IL2CPP.net6preview"
|
$Path = "Release\UnityExplorer.MelonLoader.IL2CPP.net6preview"
|
||||||
# ILRepack
|
# ILRepack
|
||||||
@ -17,6 +17,27 @@ Move-Item -Path $Path/UniverseLib.IL2CPP.Unhollower.dll -Destination $Path/UserL
|
|||||||
Remove-Item $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip -ErrorAction SilentlyContinue
|
Remove-Item $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip -ErrorAction SilentlyContinue
|
||||||
7z a $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip .\$Path\*
|
7z a $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip .\$Path\*
|
||||||
|
|
||||||
|
# ----------- MelonLoader IL2CPP Interop (net6) -----------
|
||||||
|
dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net6_interop
|
||||||
|
$Path = "Release\UnityExplorer.MelonLoader.IL2CPP.net6preview.interop"
|
||||||
|
# ILRepack
|
||||||
|
lib/ILRepack.exe /target:library /lib:lib/net6 /lib:lib/interop /lib:$Path /internalize /out:$Path/UnityExplorer.ML.IL2CPP.net6preview.interop.dll $Path/UnityExplorer.ML.IL2CPP.net6preview.interop.dll $Path/mcs.dll
|
||||||
|
# (cleanup and move files)
|
||||||
|
Remove-Item $Path/UnityExplorer.ML.IL2CPP.net6preview.interop.deps.json
|
||||||
|
Remove-Item $Path/Tomlet.dll
|
||||||
|
Remove-Item $Path/mcs.dll
|
||||||
|
Remove-Item $Path/Iced.dll
|
||||||
|
Remove-Item $Path/Il2CppInterop.Common.dll
|
||||||
|
Remove-Item $Path/Il2CppInterop.Runtime.dll
|
||||||
|
Remove-Item $Path/Microsoft.Extensions.Logging.Abstractions.dll
|
||||||
|
New-Item -Path "$Path" -Name "Mods" -ItemType "directory" -Force
|
||||||
|
Move-Item -Path $Path/UnityExplorer.ML.IL2CPP.net6preview.interop.dll -Destination $Path/Mods -Force
|
||||||
|
New-Item -Path "$Path" -Name "UserLibs" -ItemType "directory" -Force
|
||||||
|
Move-Item -Path $Path/UniverseLib.IL2CPP.Interop.dll -Destination $Path/UserLibs -Force
|
||||||
|
# (create zip archive)
|
||||||
|
Remove-Item $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip -ErrorAction SilentlyContinue
|
||||||
|
7z a $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip .\$Path\*
|
||||||
|
|
||||||
# ----------- MelonLoader IL2CPP (net472) -----------
|
# ----------- MelonLoader IL2CPP (net472) -----------
|
||||||
dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net472
|
dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net472
|
||||||
$Path = "Release/UnityExplorer.MelonLoader.IL2CPP"
|
$Path = "Release/UnityExplorer.MelonLoader.IL2CPP"
|
||||||
|
@ -11,16 +11,23 @@
|
|||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<RootNamespace>UnityExplorer</RootNamespace>
|
<RootNamespace>UnityExplorer</RootNamespace>
|
||||||
<LangVersion>10.0</LangVersion>
|
<LangVersion>10.0</LangVersion>
|
||||||
<Configurations>BIE_Cpp;BIE_Cpp_CoreCLR;BIE5_Mono;BIE6_Mono;ML_Cpp_net6;ML_Cpp_net472;ML_Mono;STANDALONE_Mono;STANDALONE_Cpp</Configurations>
|
<Configurations>BIE_Cpp;BIE_Cpp_CoreCLR;BIE5_Mono;BIE6_Mono;ML_Cpp_net6;ML_Cpp_net6_interop;ML_Cpp_net472;ML_Mono;STANDALONE_Mono;STANDALONE_Cpp</Configurations>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- ~~~~~ CONFIGURATIONS ~~~~~ -->
|
<!-- ~~~~~ CONFIGURATIONS ~~~~~ -->
|
||||||
<!-- ML IL2CPP net6 -->
|
<!-- ML IL2CPP Unhollower net6 -->
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='ML_Cpp_net6'">
|
<PropertyGroup Condition="'$(Configuration)'=='ML_Cpp_net6'">
|
||||||
<TargetFramework>net6</TargetFramework>
|
<TargetFramework>net6</TargetFramework>
|
||||||
<OutputPath>..\Release\UnityExplorer.MelonLoader.IL2CPP.net6preview\</OutputPath>
|
<OutputPath>..\Release\UnityExplorer.MelonLoader.IL2CPP.net6preview\</OutputPath>
|
||||||
<DefineConstants>CPP,ML,UNHOLLOWER</DefineConstants>
|
<DefineConstants>CPP,ML,UNHOLLOWER</DefineConstants>
|
||||||
<AssemblyName>UnityExplorer.ML.IL2CPP.net6preview</AssemblyName>
|
<AssemblyName>UnityExplorer.ML.IL2CPP.net6preview</AssemblyName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<!-- ML IL2CPP Interop net6 -->
|
||||||
|
<PropertyGroup Condition="'$(Configuration)'=='ML_Cpp_net6_interop'">
|
||||||
|
<TargetFramework>net6</TargetFramework>
|
||||||
|
<OutputPath>..\Release\UnityExplorer.MelonLoader.IL2CPP.net6preview.interop\</OutputPath>
|
||||||
|
<DefineConstants>CPP,ML,INTEROP</DefineConstants>
|
||||||
|
<AssemblyName>UnityExplorer.ML.IL2CPP.net6preview.interop</AssemblyName>
|
||||||
|
</PropertyGroup>
|
||||||
<!-- ML IL2CPP net472 (TEMP) -->
|
<!-- ML IL2CPP net472 (TEMP) -->
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='ML_Cpp_net472'">
|
<PropertyGroup Condition="'$(Configuration)'=='ML_Cpp_net472'">
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
@ -88,7 +95,7 @@
|
|||||||
<PackageReference Include="Il2CppAssemblyUnhollower.BaseLib" Version="0.4.22" />
|
<PackageReference Include="Il2CppAssemblyUnhollower.BaseLib" Version="0.4.22" />
|
||||||
<PackageReference Include="UniverseLib.IL2CPP.Unhollower" Version="1.5.1" />
|
<PackageReference Include="UniverseLib.IL2CPP.Unhollower" Version="1.5.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Condition="'$(Configuration)'=='BIE_Cpp_CoreCLR'">
|
<ItemGroup Condition="'$(Configuration)'=='BIE_Cpp_CoreCLR' or '$(Configuration)'=='ML_Cpp_net6_interop'">
|
||||||
<PackageReference Include="Il2CppInterop.Common" Version="1.0.0" />
|
<PackageReference Include="Il2CppInterop.Common" Version="1.0.0" />
|
||||||
<PackageReference Include="Il2CppInterop.Runtime" Version="1.0.0" />
|
<PackageReference Include="Il2CppInterop.Runtime" Version="1.0.0" />
|
||||||
<PackageReference Include="UniverseLib.IL2CPP.Interop" Version="1.5.1" />
|
<PackageReference Include="UniverseLib.IL2CPP.Interop" Version="1.5.1" />
|
||||||
@ -114,7 +121,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!-- MelonLoader net6 -->
|
<!-- MelonLoader net6 -->
|
||||||
<ItemGroup Condition="'$(Configuration)'=='ML_Cpp_net6'">
|
<ItemGroup Condition="'$(Configuration)'=='ML_Cpp_net6' or '$(Configuration)'=='ML_Cpp_net6_interop'">
|
||||||
<Reference Include="MelonLoader">
|
<Reference Include="MelonLoader">
|
||||||
<HintPath>..\lib\net6\MelonLoader.dll</HintPath>
|
<HintPath>..\lib\net6\MelonLoader.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
@ -211,7 +218,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!-- Il2Cpp Interop -->
|
<!-- Il2Cpp Interop -->
|
||||||
<ItemGroup Condition="'$(Configuration)'=='BIE_Cpp_CoreCLR'">
|
<ItemGroup Condition="'$(Configuration)'=='BIE_Cpp_CoreCLR' or '$(Configuration)'=='ML_Cpp_net6_interop'">
|
||||||
<Reference Include="Il2Cppmscorlib">
|
<Reference Include="Il2Cppmscorlib">
|
||||||
<HintPath>..\lib\interop\Il2Cppmscorlib.dll</HintPath>
|
<HintPath>..\lib\interop\Il2Cppmscorlib.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
|
@ -13,6 +13,7 @@ Global
|
|||||||
Release_BIE6_Mono|Any CPU = Release_BIE6_Mono|Any CPU
|
Release_BIE6_Mono|Any CPU = Release_BIE6_Mono|Any CPU
|
||||||
Release_ML_Cpp_net472|Any CPU = Release_ML_Cpp_net472|Any CPU
|
Release_ML_Cpp_net472|Any CPU = Release_ML_Cpp_net472|Any CPU
|
||||||
Release_ML_Cpp_net6|Any CPU = Release_ML_Cpp_net6|Any CPU
|
Release_ML_Cpp_net6|Any CPU = Release_ML_Cpp_net6|Any CPU
|
||||||
|
Release_ML_Cpp_net6_interop|Any CPU = Release_ML_Cpp_net6_interop|Any CPU
|
||||||
Release_ML_Mono|Any CPU = Release_ML_Mono|Any CPU
|
Release_ML_Mono|Any CPU = Release_ML_Mono|Any CPU
|
||||||
Release_STANDALONE_Cpp|Any CPU = Release_STANDALONE_Cpp|Any CPU
|
Release_STANDALONE_Cpp|Any CPU = Release_STANDALONE_Cpp|Any CPU
|
||||||
Release_STANDALONE_Mono|Any CPU = Release_STANDALONE_Mono|Any CPU
|
Release_STANDALONE_Mono|Any CPU = Release_STANDALONE_Mono|Any CPU
|
||||||
@ -30,6 +31,8 @@ Global
|
|||||||
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Cpp_net472|Any CPU.Build.0 = ML_Cpp_net472|Any CPU
|
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Cpp_net472|Any CPU.Build.0 = ML_Cpp_net472|Any CPU
|
||||||
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Cpp_net6|Any CPU.ActiveCfg = ML_Cpp_net6|Any CPU
|
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Cpp_net6|Any CPU.ActiveCfg = ML_Cpp_net6|Any CPU
|
||||||
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Cpp_net6|Any CPU.Build.0 = ML_Cpp_net6|Any CPU
|
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Cpp_net6|Any CPU.Build.0 = ML_Cpp_net6|Any CPU
|
||||||
|
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Cpp_net6_interop|Any CPU.ActiveCfg = ML_Cpp_net6_interop|Any CPU
|
||||||
|
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Cpp_net6_interop|Any CPU.Build.0 = ML_Cpp_net6_interop|Any CPU
|
||||||
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Mono|Any CPU.ActiveCfg = ML_Mono|Any CPU
|
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Mono|Any CPU.ActiveCfg = ML_Mono|Any CPU
|
||||||
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Mono|Any CPU.Build.0 = ML_Mono|Any CPU
|
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_ML_Mono|Any CPU.Build.0 = ML_Mono|Any CPU
|
||||||
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_STANDALONE_Cpp|Any CPU.ActiveCfg = STANDALONE_Cpp|Any CPU
|
{B21DBDE3-5D6F-4726-93AB-CC3CC68BAE7D}.Release_STANDALONE_Cpp|Any CPU.ActiveCfg = STANDALONE_Cpp|Any CPU
|
||||||
|
Loading…
x
Reference in New Issue
Block a user