diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 607d191..2188fbc 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,4 @@ # These are supported funding model platforms -ko_fi: sinaidev +github: originalnicodr + diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 262e200..4af3005 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -22,9 +22,14 @@ body: description: Please select your environment for UnityExplorer. options: - BepInEx IL2CPP + - BepInEx IL2CPP CoreCLR + - BepInEx Unity IL2CPP CoreCLR - BepInEx 6.X Mono + - BepInEx 6.X Unity Mono - BepInEx 5.X Mono - MelonLoader IL2CPP + - MelonLoader IL2CPP net6preview + - MelonLoader IL2CPP CoreCLR - MelonLoader Mono - Standalone IL2CPP - Standalone Mono @@ -57,4 +62,4 @@ body: * Standalone: `{DLL_Location}\UnityExplorer\Logs\` (pick the most recent one) render: shell validations: - required: false \ No newline at end of file + required: false diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d890149..114b8ea 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,6 +1,6 @@ name: Build UnityExplorer -# Controls when the action will run. +# Controls when the action will run. on: push: branches: [master] @@ -15,78 +15,93 @@ jobs: steps: # Setup - - name: Checkout latest - uses: actions/checkout@v2 - - - name: Setup dotnet - uses: actions/setup-dotnet@v2 + - name: Checkout latest + uses: actions/checkout@v3 with: - dotnet-version: '6.0.x' - include-prerelease: true - + submodules: true + - name: Setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '6.x' # Run build script - - run: | - ./build.ps1 - + - name: Build UE + run: ./build.ps1 + # Upload artifacts - - # BepInEx IL2CPP - - uses: actions/upload-artifact@v2 + - name: Upload BepInEx.IL2CPP + uses: actions/upload-artifact@v3 with: name: UnityExplorer.BepInEx.IL2CPP.zip path: ./Release/UnityExplorer.BepInEx.IL2CPP/ - - # BepInEx IL2CPP CoreCLR - - uses: actions/upload-artifact@v2 + + - name: Upload BepInEx.IL2CPP.CoreCLR + uses: actions/upload-artifact@v3 with: name: UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip path: ./Release/UnityExplorer.BepInEx.IL2CPP.CoreCLR/ - - # BepInEx 5 Mono - - uses: actions/upload-artifact@v2 + + - name: Upload BepInEx.Unity.IL2CPP.CoreCLR + uses: actions/upload-artifact@v3 + with: + name: UnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR.zip + path: ./Release/UnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR/ + + - name: Upload BepInEx5.Mono + uses: actions/upload-artifact@v3 with: name: UnityExplorer.BepInEx5.Mono.zip path: ./Release/UnityExplorer.BepInEx5.Mono/ - - # BepInEx 6 Mono - - uses: actions/upload-artifact@v2 + + - name: Upload BepInEx6.Mono + uses: actions/upload-artifact@v3 with: name: UnityExplorer.BepInEx6.Mono.zip path: ./Release/UnityExplorer.BepInEx6.Mono/ - - # Editor - - uses: actions/upload-artifact@v2 + + - name: Upload BepInEx6.Unity.Mono + uses: actions/upload-artifact@v3 with: - name: UnityExplorer.Editor.zip - path: ./UnityEditorPackage/ - - # MelonLoader IL2CPP net6preview - - uses: actions/upload-artifact@v2 - with: - name: UnityExplorer.MelonLoader.IL2CPP.net6preview.zip - path: ./Release/UnityExplorer.MelonLoader.IL2CPP.net6preview/ - - # MelonLoader IL2CPP net472 - - uses: actions/upload-artifact@v2 + name: UnityExplorer.BepInEx6.Unity.Mono.zip + path: ./Release/UnityExplorer.BepInEx6.Unity.Mono/ + + - name: Upload MelonLoader.IL2CPP + uses: actions/upload-artifact@v3 with: name: UnityExplorer.MelonLoader.IL2CPP.zip path: ./Release/UnityExplorer.MelonLoader.IL2CPP/ - - # MelonLoader Mono - - uses: actions/upload-artifact@v2 + + - name: Upload MelonLoader.IL2CPP.net6preview + uses: actions/upload-artifact@v3 + with: + name: UnityExplorer.MelonLoader.IL2CPP.net6preview.zip + path: ./Release/UnityExplorer.MelonLoader.IL2CPP.net6preview/ + + - name: Upload MelonLoader.IL2CPP.CoreCLR + uses: actions/upload-artifact@v3 + with: + name: UnityExplorer.MelonLoader.IL2CPP.CoreCLR.zip + path: ./Release/UnityExplorer.MelonLoader.IL2CPP.CoreCLR/ + + - name: Upload MelonLoader.Mono + uses: actions/upload-artifact@v3 with: name: UnityExplorer.MelonLoader.Mono.zip path: ./Release/UnityExplorer.MelonLoader.Mono/ - - # Standalone Il2Cpp - - uses: actions/upload-artifact@v2 + + - name: Upload Standalone.IL2CPP + uses: actions/upload-artifact@v3 with: name: UnityExplorer.Standalone.IL2CPP.zip path: ./Release/UnityExplorer.Standalone.IL2CPP/ - - # Standalone Mono - - uses: actions/upload-artifact@v2 + + - name: Upload Standalone.Mono + uses: actions/upload-artifact@v3 with: name: UnityExplorer.Standalone.Mono.zip path: ./Release/UnityExplorer.Standalone.Mono/ - + + - name: Upload Editor + uses: actions/upload-artifact@v3 + with: + name: UnityExplorer.Editor.zip + path: ./UnityEditorPackage/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b75476a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "UniverseLib"] + path = UniverseLib + url = https://github.com/yukieiji/UniverseLib diff --git a/README.md b/README.md index ed03626..05fec73 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ✔️ Supports most Unity versions from 5.2 to 2021+ (IL2CPP and Mono).
- ✨ Powered by UniverseLib + ✨ Powered by UniverseLib
# Releases [](../../releases) @@ -27,11 +27,11 @@ Nightly builds can be found [here](https://github.com/originalnicodr/UnityExplor ## BepInEx -| Release | IL2CPP | Mono | -| ------- | ------ | ---- | -| BIE 6.X | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx.IL2CPP.zip) | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx6.Mono.zip) | -| BIE 6.X (CoreCLR) | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip) | ✖ | -| BIE 5.X | ✖️ n/a | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx5.Mono.zip) | +| Release | IL2CPP(CoreCLR) | IL2CPP(Unhollower) | Mono | +| ------- | ------ | ------ | ---- | +| BIE 6.X be.647+ | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR.zip) | ✖️ n/a | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx6.Unity.Mono.zip) | +| BIE 6.X be.472 to be.577 | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip) | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx.IL2CPP.zip) | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx6.Mono.zip) | +| BIE 5.X | ✖️ n/a | ✖️ n/a | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx5.Mono.zip) | 1. Unzip the release file into a folder 2. Take the `plugins/originalnicodr-UnityExplorer` folder and place it in `BepInEx/plugins/` @@ -42,8 +42,9 @@ Nightly builds can be found [here](https://github.com/originalnicodr/UnityExplor | Release | IL2CPP | Mono | | ------- | ------ | ---- | +| ML 0.6.x | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.MelonLoader.IL2CPP.CoreCLR.zip) | ✖️ | +| ML 0.6(only alpha build) | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.MelonLoader.IL2CPP.net6preview.zip) | ✖️ | | ML 0.5 | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.MelonLoader.IL2CPP.zip) | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.MelonLoader.Mono.zip) | -| ML 0.6 | ✅ [link](https://github.com/originalnicodr/UnityExplorer/releases/latest/download/UnityExplorer.MelonLoader.IL2CPP.net6preview.zip) | ✖️ | 1. Unzip the release file into a folder 2. Copy the DLL inside the `Mods` folder into your MelonLoader `Mods` folder diff --git a/UnityEditorPackage/Runtime/UnityExplorer.STANDALONE.Mono.dll b/UnityEditorPackage/Runtime/UnityExplorer.STANDALONE.Mono.dll index 42a4e06..707214b 100644 Binary files a/UnityEditorPackage/Runtime/UnityExplorer.STANDALONE.Mono.dll and b/UnityEditorPackage/Runtime/UnityExplorer.STANDALONE.Mono.dll differ diff --git a/UnityEditorPackage/Runtime/UniverseLib.Mono.dll b/UnityEditorPackage/Runtime/UniverseLib.Mono.dll index 4cfb1a5..846ae74 100644 Binary files a/UnityEditorPackage/Runtime/UniverseLib.Mono.dll and b/UnityEditorPackage/Runtime/UniverseLib.Mono.dll differ diff --git a/UniverseLib b/UniverseLib new file mode 160000 index 0000000..3dc1aba --- /dev/null +++ b/UniverseLib @@ -0,0 +1 @@ +Subproject commit 3dc1aba123650cf829cc2ea828aff737f197a4a9 diff --git a/build.ps1 b/build.ps1 index 476ec05..af4564f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,8 +1,13 @@ -# ----------- MelonLoader IL2CPP Unhollower (net6) ----------- -dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net6 +cd UniverseLib +.\build.ps1 +cd .. + + +# ----------- MelonLoader IL2CPP (net6) ----------- +dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net6preview $Path = "Release\UnityExplorer.MelonLoader.IL2CPP.net6preview" # ILRepack -lib/ILRepack.exe /target:library /lib:lib/net6 /lib:lib/unhollowed /lib:$Path /internalize /out:$Path/UnityExplorer.ML.IL2CPP.net6preview.dll $Path/UnityExplorer.ML.IL2CPP.net6preview.dll $Path/mcs.dll +lib/ILRepack.exe /target:library /lib:lib/net6 /lib:lib/unhollowed /lib:$Path /internalize /out:$Path/UnityExplorer.ML.IL2CPP.net6preview.dll $Path/UnityExplorer.ML.IL2CPP.net6preview.dll $Path/mcs.dll # (cleanup and move files) Remove-Item $Path/UnityExplorer.ML.IL2CPP.net6preview.deps.json Remove-Item $Path/Tomlet.dll @@ -15,15 +20,15 @@ New-Item -Path "$Path" -Name "UserLibs" -ItemType "directory" -Force Move-Item -Path $Path/UniverseLib.IL2CPP.Unhollower.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\* +compress-archive .\$Path\* $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.zip -# ----------- MelonLoader IL2CPP Interop (net6) ----------- -dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net6_interop -$Path = "Release\UnityExplorer.MelonLoader.IL2CPP.net6preview.interop" +# ----------- MelonLoader IL2CPP CoreCLR (net6) ----------- +dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_CoreCLR +$Path = "Release\UnityExplorer.MelonLoader.IL2CPP.CoreCLR" # 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 +lib/ILRepack.exe /target:library /lib:lib/net6 /lib:lib/interop /lib:$Path /internalize /out:$Path/UnityExplorer.ML.IL2CPP.CoreCLR.dll $Path/UnityExplorer.ML.IL2CPP.CoreCLR.dll $Path/mcs.dll # (cleanup and move files) -Remove-Item $Path/UnityExplorer.ML.IL2CPP.net6preview.interop.deps.json +Remove-Item $Path/UnityExplorer.ML.IL2CPP.CoreCLR.deps.json Remove-Item $Path/Tomlet.dll Remove-Item $Path/mcs.dll Remove-Item $Path/Iced.dll @@ -31,18 +36,18 @@ 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 +Move-Item -Path $Path/UnityExplorer.ML.IL2CPP.CoreCLR.dll -Destination $Path/Mods -Force New-Item -Path "$Path" -Name "UserLibs" -ItemType "directory" -Force -Move-Item -Path $Path/UniverseLib.IL2CPP.Interop.ML.dll -Destination $Path/UserLibs -Force +Move-Item -Path $Path/UniverseLib.ML.IL2CPP.Interop.dll -Destination $Path/UserLibs -Force # (create zip archive) -Remove-Item $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.interop.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.MelonLoader.IL2CPP.net6preview.interop.zip .\$Path\* +Remove-Item $Path/../UnityExplorer.MelonLoader.IL2CPP.CoreCLR.zip -ErrorAction SilentlyContinue +compress-archive .\$Path\* $Path/../UnityExplorer.MelonLoader.IL2CPP.CoreCLR.zip # ----------- MelonLoader IL2CPP (net472) ----------- dotnet build src/UnityExplorer.sln -c Release_ML_Cpp_net472 $Path = "Release/UnityExplorer.MelonLoader.IL2CPP" # ILRepack -lib/ILRepack.exe /target:library /lib:lib/net472 /lib:lib/net35 /lib:lib/unhollowed /lib:$Path /internalize /out:$Path/UnityExplorer.ML.IL2CPP.dll $Path/UnityExplorer.ML.IL2CPP.dll $Path/mcs.dll +lib/ILRepack.exe /target:library /lib:lib/net472 /lib:lib/net35 /lib:lib/unhollowed /lib:$Path /internalize /out:$Path/UnityExplorer.ML.IL2CPP.dll $Path/UnityExplorer.ML.IL2CPP.dll $Path/mcs.dll # (cleanup and move files) Remove-Item $Path/Tomlet.dll Remove-Item $Path/mcs.dll @@ -54,13 +59,13 @@ New-Item -Path "$Path" -Name "UserLibs" -ItemType "directory" -Force Move-Item -Path $Path/UniverseLib.IL2CPP.Unhollower.dll -Destination $Path/UserLibs -Force # (create zip archive) Remove-Item $Path/../UnityExplorer.MelonLoader.IL2CPP.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.MelonLoader.IL2CPP.zip .\$Path\* +compress-archive .\$Path\* $Path/../UnityExplorer.MelonLoader.IL2CPP.zip # ----------- MelonLoader Mono ----------- dotnet build src/UnityExplorer.sln -c Release_ML_Mono $Path = "Release/UnityExplorer.MelonLoader.Mono" # ILRepack -lib/ILRepack.exe /target:library /lib:lib/net35 /lib:$Path /internalize /out:$Path/UnityExplorer.ML.Mono.dll $Path/UnityExplorer.ML.Mono.dll $Path/mcs.dll +lib/ILRepack.exe /target:library /lib:lib/net35 /lib:$Path /internalize /out:$Path/UnityExplorer.ML.Mono.dll $Path/UnityExplorer.ML.Mono.dll $Path/mcs.dll # (cleanup and move files) Remove-Item $Path/Tomlet.dll Remove-Item $Path/mcs.dll @@ -70,13 +75,13 @@ New-Item -Path "$Path" -Name "UserLibs" -ItemType "directory" -Force Move-Item -Path $Path/UniverseLib.Mono.dll -Destination $Path/UserLibs -Force # (create zip archive) Remove-Item $Path/../UnityExplorer.MelonLoader.Mono.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.MelonLoader.Mono.zip .\$Path\* +compress-archive .\$Path\* $Path/../UnityExplorer.MelonLoader.Mono.zip # ----------- BepInEx IL2CPP ----------- dotnet build src/UnityExplorer.sln -c Release_BIE_Cpp $Path = "Release/UnityExplorer.BepInEx.IL2CPP" # ILRepack -lib/ILRepack.exe /target:library /lib:lib/net472 /lib:lib/unhollowed /lib:$Path /internalize /out:$Path/UnityExplorer.BIE.IL2CPP.dll $Path/UnityExplorer.BIE.IL2CPP.dll $Path/mcs.dll $Path/Tomlet.dll +lib/ILRepack.exe /target:library /lib:lib/net472/BepInEx/build423~577 /lib:lib/unhollowed /lib:$Path /internalize /out:$Path/UnityExplorer.BIE.IL2CPP.dll $Path/UnityExplorer.BIE.IL2CPP.dll $Path/mcs.dll $Path/Tomlet.dll # (cleanup and move files) Remove-Item $Path/Tomlet.dll Remove-Item $Path/mcs.dll @@ -88,13 +93,13 @@ Move-Item -Path $Path/UnityExplorer.BIE.IL2CPP.dll -Destination $Path/plugins/si Move-Item -Path $Path/UniverseLib.IL2CPP.Unhollower.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force # (create zip archive) Remove-Item $Path/../UnityExplorer.BepInEx.IL2CPP.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.BepInEx.IL2CPP.zip .\$Path\* +compress-archive .\$Path\* $Path/../UnityExplorer.BepInEx.IL2CPP.zip # ----------- BepInEx IL2CPP CoreCLR ----------- dotnet build src/UnityExplorer.sln -c Release_BIE_CoreCLR $Path = "Release/UnityExplorer.BepInEx.IL2CPP.CoreCLR" # ILRepack -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 +lib/ILRepack.exe /target:library /lib:lib/net472/BepInEx/build423~577 /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 # (cleanup and move files) Remove-Item $Path/Tomlet.dll Remove-Item $Path/mcs.dll @@ -106,16 +111,37 @@ Remove-Item $Path/UnityExplorer.BIE.IL2CPP.CoreCLR.deps.json New-Item -Path "$Path" -Name "plugins" -ItemType "directory" -Force New-Item -Path "$Path" -Name "plugins/sinai-dev-UnityExplorer" -ItemType "directory" -Force Move-Item -Path $Path/UnityExplorer.BIE.IL2CPP.CoreCLR.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force -Move-Item -Path $Path/UniverseLib.IL2CPP.Interop.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force +Move-Item -Path $Path/UniverseLib.BIE.IL2CPP.Interop.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force # (create zip archive) Remove-Item $Path/../UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip .\$Path\* +compress-archive .\$Path\* $Path/../UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip + +# ----------- BepInEx Unity IL2CPP CoreCLR ----------- +dotnet build src/UnityExplorer.sln -c Release_BIE_Unity_Cpp +$Path = "Release/UnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR" +# ILRepack +lib/ILRepack.exe /target:library /lib:lib/net472/BepInEx/build647+ /lib:lib/net6/ /lib:lib/interop/ /lib:$Path /internalize /out:$Path/UnityExplorer.BIE.Unity.IL2CPP.CoreCLR.dll $Path/UnityExplorer.BIE.Unity.IL2CPP.CoreCLR.dll $Path/mcs.dll $Path/Tomlet.dll +# (cleanup and move files) +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 +Remove-Item $Path/UnityExplorer.BIE.Unity.IL2CPP.CoreCLR.deps.json +New-Item -Path "$Path" -Name "plugins" -ItemType "directory" -Force +New-Item -Path "$Path" -Name "plugins/sinai-dev-UnityExplorer" -ItemType "directory" -Force +Move-Item -Path $Path/UnityExplorer.BIE.Unity.IL2CPP.CoreCLR.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force +Move-Item -Path $Path/UniverseLib.BIE.IL2CPP.Interop.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force +# (create zip archive) +Remove-Item $Path/../UnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR.zip -ErrorAction SilentlyContinue +compress-archive .\$Path\* $Path/../UnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR.zip # ----------- BepInEx 5 Mono ----------- dotnet build src/UnityExplorer.sln -c Release_BIE5_Mono $Path = "Release/UnityExplorer.BepInEx5.Mono" # ILRepack -lib/ILRepack.exe /target:library /lib:lib/net35 /lib:$Path /internalize /out:$Path/UnityExplorer.BIE5.Mono.dll $Path/UnityExplorer.BIE5.Mono.dll $Path/mcs.dll $Path/Tomlet.dll +lib/ILRepack.exe /target:library /lib:lib/net35 /lib:lib/net35/BepInEx /lib:$Path /internalize /out:$Path/UnityExplorer.BIE5.Mono.dll $Path/UnityExplorer.BIE5.Mono.dll $Path/mcs.dll $Path/Tomlet.dll # (cleanup and move files) Remove-Item $Path/Tomlet.dll Remove-Item $Path/mcs.dll @@ -125,13 +151,13 @@ Move-Item -Path $Path/UnityExplorer.BIE5.Mono.dll -Destination $Path/plugins/sin Move-Item -Path $Path/UniverseLib.Mono.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force # (create zip archive) Remove-Item $Path/../UnityExplorer.BepInEx5.Mono.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.BepInEx5.Mono.zip .\$Path\* +compress-archive .\$Path\* $Path/../UnityExplorer.BepInEx5.Mono.zip # ----------- BepInEx 6 Mono ----------- dotnet build src/UnityExplorer.sln -c Release_BIE6_Mono $Path = "Release/UnityExplorer.BepInEx6.Mono" # ILRepack -lib/ILRepack.exe /target:library /lib:lib/net35 /lib:$Path /internalize /out:$Path/UnityExplorer.BIE6.Mono.dll $Path/UnityExplorer.BIE6.Mono.dll $Path/mcs.dll $Path/Tomlet.dll +lib/ILRepack.exe /target:library /lib:lib/net35 /lib:lib/net35/BepInEx/build423~577 /lib:$Path /internalize /out:$Path/UnityExplorer.BIE6.Mono.dll $Path/UnityExplorer.BIE6.Mono.dll $Path/mcs.dll $Path/Tomlet.dll # (cleanup and move files) Remove-Item $Path/Tomlet.dll Remove-Item $Path/mcs.dll @@ -141,7 +167,23 @@ Move-Item -Path $Path/UnityExplorer.BIE6.Mono.dll -Destination $Path/plugins/sin Move-Item -Path $Path/UniverseLib.Mono.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force # (create zip archive) Remove-Item $Path/../UnityExplorer.BepInEx6.Mono.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.BepInEx6.Mono.zip .\$Path\* +compress-archive .\$Path\* $Path/../UnityExplorer.BepInEx6.Mono.zip + +# ----------- BepInEx 6 Unity Mono ----------- +dotnet build src/UnityExplorer.sln -c Release_BIE6_Unity_Mono +$Path = "Release/UnityExplorer.BepInEx6.Unity.Mono" +# ILRepack +lib/ILRepack.exe /target:library /lib:lib/net35 /lib:lib/net35/BepInEx/build647+ /lib:$Path /internalize /out:$Path/UnityExplorer.BIE6.Unity.Mono.dll $Path/UnityExplorer.BIE6.Unity.Mono.dll $Path/mcs.dll $Path/Tomlet.dll +# (cleanup and move files) +Remove-Item $Path/Tomlet.dll +Remove-Item $Path/mcs.dll +New-Item -Path "$Path" -Name "plugins" -ItemType "directory" -Force +New-Item -Path "$Path" -Name "plugins/sinai-dev-UnityExplorer" -ItemType "directory" -Force +Move-Item -Path $Path/UnityExplorer.BIE6.Unity.Mono.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force +Move-Item -Path $Path/UniverseLib.Mono.dll -Destination $Path/plugins/sinai-dev-UnityExplorer -Force +# (create zip archive) +Remove-Item $Path/../UnityExplorer.BepInEx6.Unity.Mono.zip -ErrorAction SilentlyContinue +compress-archive .\$Path\* $Path/../UnityExplorer.BepInEx6.Unity.Mono.zip # ----------- Standalone Mono ----------- dotnet build src/UnityExplorer.sln -c Release_STANDALONE_Mono @@ -152,7 +194,7 @@ lib/ILRepack.exe /target:library /lib:lib/net35 /lib:$Path /internalize /out:$Pa Remove-Item $Path/Tomlet.dll Remove-Item $Path/mcs.dll Remove-Item $Path/../UnityExplorer.Standalone.Mono.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.Standalone.Mono.zip .\$Path\* +compress-archive .\$Path\* $Path/../UnityExplorer.Standalone.Mono.zip # ----------- Standalone IL2CPP ----------- dotnet build src/UnityExplorer.sln -c Release_STANDALONE_Cpp @@ -165,7 +207,7 @@ Remove-Item $Path/mcs.dll Remove-Item $Path/Iced.dll Remove-Item $Path/UnhollowerBaseLib.dll Remove-Item $Path/../UnityExplorer.Standalone.IL2CPP.zip -ErrorAction SilentlyContinue -7z a $Path/../UnityExplorer.Standalone.IL2CPP.zip .\$Path\* +compress-archive .\$Path\* $Path/../UnityExplorer.Standalone.IL2CPP.zip # ----------- Editor (mono) ----------- $Path1 = "Release/UnityExplorer.Standalone.Mono" @@ -173,4 +215,4 @@ $Path2 = "UnityEditorPackage/Runtime" Copy-Item $Path1/UnityExplorer.STANDALONE.Mono.dll -Destination $Path2 Copy-Item $Path1/UniverseLib.Mono.dll -Destination $Path2 Remove-Item Release/UnityExplorer.Editor.zip -ErrorAction SilentlyContinue -7z a Release/UnityExplorer.Editor.zip .\UnityEditorPackage\* \ No newline at end of file +compress-archive .\UnityEditorPackage\* Release/UnityExplorer.Editor.zip \ No newline at end of file diff --git a/lib/net35/BepInEx.dll b/lib/net35/BepInEx/BepInEx.dll similarity index 100% rename from lib/net35/BepInEx.dll rename to lib/net35/BepInEx/BepInEx.dll diff --git a/lib/net35/BepInEx.Core.dll b/lib/net35/BepInEx/build423~577/BepInEx.Core.dll similarity index 100% rename from lib/net35/BepInEx.Core.dll rename to lib/net35/BepInEx/build423~577/BepInEx.Core.dll diff --git a/lib/net35/BepInEx.Unity.dll b/lib/net35/BepInEx/build423~577/BepInEx.Unity.dll similarity index 100% rename from lib/net35/BepInEx.Unity.dll rename to lib/net35/BepInEx/build423~577/BepInEx.Unity.dll diff --git a/lib/net35/BepInEx/build647+/BepInEx.Core.dll b/lib/net35/BepInEx/build647+/BepInEx.Core.dll new file mode 100644 index 0000000..d68f178 Binary files /dev/null and b/lib/net35/BepInEx/build647+/BepInEx.Core.dll differ diff --git a/lib/net35/BepInEx/build647+/BepInEx.Unity.Mono.dll b/lib/net35/BepInEx/build647+/BepInEx.Unity.Mono.dll new file mode 100644 index 0000000..d101293 Binary files /dev/null and b/lib/net35/BepInEx/build647+/BepInEx.Unity.Mono.dll differ diff --git a/lib/net472/BepInEx.Core.dll b/lib/net472/BepInEx/build423~577/BepInEx.Core.dll similarity index 100% rename from lib/net472/BepInEx.Core.dll rename to lib/net472/BepInEx/build423~577/BepInEx.Core.dll diff --git a/lib/net472/BepInEx.IL2CPP.dll b/lib/net472/BepInEx/build423~577/BepInEx.IL2CPP.dll similarity index 100% rename from lib/net472/BepInEx.IL2CPP.dll rename to lib/net472/BepInEx/build423~577/BepInEx.IL2CPP.dll diff --git a/lib/net472/BepInEx/build647+/BepInEx.Core.dll b/lib/net472/BepInEx/build647+/BepInEx.Core.dll new file mode 100644 index 0000000..431e266 Binary files /dev/null and b/lib/net472/BepInEx/build647+/BepInEx.Core.dll differ diff --git a/lib/net472/BepInEx/build647+/BepInEx.Unity.Common.dll b/lib/net472/BepInEx/build647+/BepInEx.Unity.Common.dll new file mode 100644 index 0000000..6330615 Binary files /dev/null and b/lib/net472/BepInEx/build647+/BepInEx.Unity.Common.dll differ diff --git a/lib/net472/BepInEx/build647+/BepInEx.Unity.IL2CPP.dll b/lib/net472/BepInEx/build647+/BepInEx.Unity.IL2CPP.dll new file mode 100644 index 0000000..e1c5da8 Binary files /dev/null and b/lib/net472/BepInEx/build647+/BepInEx.Unity.IL2CPP.dll differ diff --git a/src/Config/ConfigManager.cs b/src/Config/ConfigManager.cs index dfccdeb..ee3ac52 100644 --- a/src/Config/ConfigManager.cs +++ b/src/Config/ConfigManager.cs @@ -22,6 +22,7 @@ namespace UnityExplorer.Config public static ConfigElement