Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 1af20ea

Browse files
committed
Add BepInEx Il2CppInterop build
1 parent 706a18d commit 1af20ea

23 files changed

+142
-26
lines changed
Binary file not shown.
512 Bytes
Binary file not shown.

build.ps1

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Remove-Item $Path/UnhollowerBaseLib.dll
1212
New-Item -Path "$Path" -Name "Mods" -ItemType "directory" -Force
1313
Move-Item -Path $Path/UnityExplorer.ML.IL2CPP.net6preview.dll -Destination $Path/Mods -Force
1414
New-Item -Path "$Path" -Name "UserLibs" -ItemType "directory" -Force
15-
Move-Item -Path $Path/UniverseLib.IL2CPP.dll -Destination $Path/UserLibs -Force
15+
Move-Item -Path $Path/UniverseLib.IL2CPP.Unhollower.dll -Destination $Path/UserLibs -Force
1616
# (create zip archive)
1717
Remove-Item $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip -ErrorAction SilentlyContinue
1818
7z a $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip .\$Path\*
@@ -30,7 +30,7 @@ Remove-Item $Path/UnhollowerBaseLib.dll
3030
New-Item -Path "$Path" -Name "Mods" -ItemType "directory" -Force
3131
Move-Item -Path $Path/UnityExplorer.ML.IL2CPP.dll -Destination $Path/Mods -Force
3232
New-Item -Path "$Path" -Name "UserLibs" -ItemType "directory" -Force
33-
Move-Item -Path $Path/UniverseLib.IL2CPP.dll -Destination $Path/UserLibs -Force
33+
Move-Item -Path $Path/UniverseLib.IL2CPP.Unhollower.dll -Destination $Path/UserLibs -Force
3434
# (create zip archive)
3535
Remove-Item $Path/../UnityExplorer.MelonLoader.IL2CPP.zip -ErrorAction SilentlyContinue
3636
7z a $Path/../UnityExplorer.MelonLoader.IL2CPP.zip .\$Path\*
@@ -64,11 +64,32 @@ Remove-Item $Path/UnhollowerBaseLib.dll
6464
New-Item -Path "$Path" -Name "plugins" -ItemType "directory" -Force
6565
New-Item -Path "$Path" -Name "plugins/sinai-dev-UnityExplorer" -ItemType "directory" -Force
6666
Move-Item -Path $Path/UnityExplorer.BIE.IL2CPP.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force
67-
Move-Item -Path $Path/UniverseLib.IL2CPP.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force
67+
Move-Item -Path $Path/UniverseLib.IL2CPP.Unhollower.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force
6868
# (create zip archive)
6969
Remove-Item $Path/../UnityExplorer.BepInEx.IL2CPP.zip -ErrorAction SilentlyContinue
7070
7z a $Path/../UnityExplorer.BepInEx.IL2CPP.zip .\$Path\*
7171

72+
# ----------- BepInEx IL2CPP CoreCLR -----------
73+
dotnet build src/UnityExplorer.sln -c Release_BIE_CoreCLR
74+
$Path = "Release/UnityExplorer.BepInEx.IL2CPP.CoreCLR"
75+
# ILRepack
76+
lib/ILRepack.exe /target:library /lib:lib/net472 /lib:lib/net6/ /lib:lib/interop/ /lib:$Path /internalize /out:$Path/UnityExplorer.BIE.IL2CPP.CoreCLR.dll $Path/UnityExplorer.BIE.IL2CPP.CoreCLR.dll $Path/mcs.dll $Path/Tomlet.dll
77+
# (cleanup and move files)
78+
Remove-Item $Path/Tomlet.dll
79+
Remove-Item $Path/mcs.dll
80+
Remove-Item $Path/Iced.dll
81+
Remove-Item $Path/Il2CppInterop.Common.dll
82+
Remove-Item $Path/Il2CppInterop.Runtime.dll
83+
Remove-Item $Path/Microsoft.Extensions.Logging.Abstractions.dll
84+
Remove-Item $Path/UnityExplorer.BIE.IL2CPP.CoreCLR.deps.json
85+
New-Item -Path "$Path" -Name "plugins" -ItemType "directory" -Force
86+
New-Item -Path "$Path" -Name "plugins/sinai-dev-UnityExplorer" -ItemType "directory" -Force
87+
Move-Item -Path $Path/UnityExplorer.BIE.IL2CPP.CoreCLR.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force
88+
Move-Item -Path $Path/UniverseLib.IL2CPP.Interop.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force
89+
# (create zip archive)
90+
Remove-Item $Path/../UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip -ErrorAction SilentlyContinue
91+
7z a $Path/../UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip .\$Path\*
92+
7293
# ----------- BepInEx 5 Mono -----------
7394
dotnet build src/UnityExplorer.sln -c Release_BIE5_Mono
7495
$Path = "Release/UnityExplorer.BepInEx5.Mono"

lib/interop/Il2CppSystem.Core.dll

79.5 KB
Binary file not shown.

lib/interop/Il2Cppmscorlib.dll

4.72 MB
Binary file not shown.
26 KB
Binary file not shown.
132 KB
Binary file not shown.
1.97 MB
Binary file not shown.
267 KB
Binary file not shown.
190 KB
Binary file not shown.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy