mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2024-12-23 01:59:40 +08:00
Finalize 4.7.0 release, cleanups
This commit is contained in:
parent
b56960dba2
commit
8a4d418ffb
@ -27,7 +27,6 @@
|
||||
|
||||
1. Unzip the release file into a folder
|
||||
2. Take the `plugins/sinai-dev-UnityExplorer` folder and place it in `BepInEx/plugins/`
|
||||
3. ⚠️ **Important**: For IL2CPP games, you must set `Il2CppDumperType = Cpp2IL` in the `BepInEx.cfg` file.
|
||||
|
||||
<i>Note: BepInEx 6 is obtainable via [builds.bepinex.dev](https://builds.bepinex.dev/projects/bepinex_be)</i>
|
||||
|
||||
|
12
build.ps1
12
build.ps1
@ -1,11 +1,11 @@
|
||||
# MelonLoader IL2CPP (net6)
|
||||
dotnet build src\UnityExplorer.sln -c Release_ML_Cpp_net6
|
||||
# (cleanup and move files)
|
||||
$Path = "Release\UnityExplorer.MelonLoader.Il2Cpp.0.6"
|
||||
Remove-Item $Path\UnityExplorer.ML.IL2CPP.deps.json
|
||||
$Path = "Release\UnityExplorer.MelonLoader.IL2CPP.net6preview"
|
||||
Remove-Item $Path\UnityExplorer.ML.IL2CPP.net6preview.deps.json
|
||||
Remove-Item $Path\Tomlet.dll
|
||||
New-Item -Path "$Path" -Name "Mods" -ItemType "directory" -Force
|
||||
Move-Item -Path $Path\UnityExplorer.ML.IL2CPP.dll -Destination $Path\Mods -Force
|
||||
Move-Item -Path $Path\UnityExplorer.ML.IL2CPP.net6preview.dll -Destination $Path\Mods -Force
|
||||
New-Item -Path "$Path" -Name "UserLibs" -ItemType "directory" -Force
|
||||
Move-Item -Path $Path\mcs.dll -Destination $Path\UserLibs -Force
|
||||
Move-Item -Path $Path\UniverseLib.IL2CPP.dll -Destination $Path\UserLibs -Force
|
||||
@ -15,7 +15,7 @@ Compress-Archive -Path $Path\* -CompressionLevel Fastest -DestinationPath $Path\
|
||||
# MelonLoader IL2CPP (net472)
|
||||
dotnet build src\UnityExplorer.sln -c Release_ML_Cpp_net472
|
||||
# (cleanup and move files)
|
||||
$Path = "Release\UnityExplorer.MelonLoader.Il2Cpp.0.5"
|
||||
$Path = "Release\UnityExplorer.MelonLoader.IL2CPP"
|
||||
Remove-Item $Path\Tomlet.dll
|
||||
New-Item -Path "$Path" -Name "Mods" -ItemType "directory" -Force
|
||||
Move-Item -Path $Path\UnityExplorer.ML.IL2CPP.dll -Destination $Path\Mods -Force
|
||||
@ -41,7 +41,7 @@ Compress-Archive -Path $Path\* -CompressionLevel Fastest -DestinationPath $Path\
|
||||
# BepInEx IL2CPP
|
||||
dotnet build src\UnityExplorer.sln -c Release_BIE_Cpp
|
||||
# (cleanup and move files)
|
||||
$Path = "Release\UnityExplorer.BepInEx.Il2Cpp"
|
||||
$Path = "Release\UnityExplorer.BepInEx.IL2CPP"
|
||||
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.dll -Destination $Path\plugins\sinai-dev-UnityExplorer -Force
|
||||
@ -84,7 +84,7 @@ Compress-Archive -Path $Path\* -CompressionLevel Fastest -DestinationPath $Path\
|
||||
|
||||
# Standalone IL2CPP
|
||||
dotnet build src\UnityExplorer.sln -c Release_STANDALONE_Cpp
|
||||
$Path = "Release\UnityExplorer.Standalone.Il2Cpp"
|
||||
$Path = "Release\UnityExplorer.Standalone.IL2CPP"
|
||||
Compress-Archive -Path $Path\* -CompressionLevel Fastest -DestinationPath $Path\..\UnityExplorer.Standalone.IL2CPP.zip -Force
|
||||
|
||||
# Editor (mono)
|
||||
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
using UnityExplorer.UI;
|
||||
|
@ -41,16 +41,16 @@ namespace UnityExplorer
|
||||
Directory.CreateDirectory(ExplorerFolder);
|
||||
ConfigManager.Init(Loader.ConfigHandler);
|
||||
|
||||
UERuntimeHelper.Init();
|
||||
ExplorerBehaviour.Setup();
|
||||
UnityCrashPrevention.Init();
|
||||
|
||||
Universe.Init(ConfigManager.Startup_Delay_Time.Value, LateInit, Log, new()
|
||||
{
|
||||
Disable_EventSystem_Override = ConfigManager.Disable_EventSystem_Override.Value,
|
||||
Force_Unlock_Mouse = ConfigManager.Force_Unlock_Mouse.Value,
|
||||
Unhollowed_Modules_Folder = loader.UnhollowedModulesFolder
|
||||
});
|
||||
|
||||
UERuntimeHelper.Init();
|
||||
ExplorerBehaviour.Setup();
|
||||
UnityCrashPrevention.Init();
|
||||
}
|
||||
|
||||
// Do a delayed setup so that objects aren't destroyed instantly.
|
||||
|
@ -17,14 +17,14 @@
|
||||
<!-- ML IL2CPP net6 -->
|
||||
<PropertyGroup Condition="'$(Configuration)'=='ML_Cpp_net6'">
|
||||
<TargetFramework>net6</TargetFramework>
|
||||
<OutputPath>..\Release\UnityExplorer.MelonLoader.Il2Cpp.0.6\</OutputPath>
|
||||
<OutputPath>..\Release\UnityExplorer.MelonLoader.IL2CPP.net6preview\</OutputPath>
|
||||
<DefineConstants>CPP,ML</DefineConstants>
|
||||
<AssemblyName>UnityExplorer.ML.IL2CPP</AssemblyName>
|
||||
<AssemblyName>UnityExplorer.ML.IL2CPP.net6preview</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<!-- ML IL2CPP net472 (TEMP) -->
|
||||
<PropertyGroup Condition="'$(Configuration)'=='ML_Cpp_net472'">
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<OutputPath>..\Release\UnityExplorer.MelonLoader.Il2Cpp.0.5\</OutputPath>
|
||||
<OutputPath>..\Release\UnityExplorer.MelonLoader.IL2CPP\</OutputPath>
|
||||
<DefineConstants>CPP,ML</DefineConstants>
|
||||
<AssemblyName>UnityExplorer.ML.IL2CPP</AssemblyName>
|
||||
</PropertyGroup>
|
||||
@ -38,7 +38,7 @@
|
||||
<!-- BEPINEX IL2CPP -->
|
||||
<PropertyGroup Condition="'$(Configuration)'=='BIE_Cpp'">
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<OutputPath>..\Release\UnityExplorer.BepInEx.Il2Cpp\</OutputPath>
|
||||
<OutputPath>..\Release\UnityExplorer.BepInEx.IL2CPP\</OutputPath>
|
||||
<DefineConstants>CPP,BIE,BIE6</DefineConstants>
|
||||
<AssemblyName>UnityExplorer.BIE.IL2CPP</AssemblyName>
|
||||
</PropertyGroup>
|
||||
@ -66,7 +66,7 @@
|
||||
<!-- STANDALONE MONO -->
|
||||
<PropertyGroup Condition="'$(Configuration)'=='STANDALONE_Cpp'">
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<OutputPath>..\Release\UnityExplorer.Standalone.Il2Cpp\</OutputPath>
|
||||
<OutputPath>..\Release\UnityExplorer.Standalone.IL2CPP\</OutputPath>
|
||||
<DefineConstants>CPP,STANDALONE</DefineConstants>
|
||||
<AssemblyName>UnityExplorer.STANDALONE.IL2CPP</AssemblyName>
|
||||
</PropertyGroup>
|
||||
@ -79,11 +79,11 @@
|
||||
<!-- il2cpp nuget -->
|
||||
<ItemGroup Condition="'$(Configuration)'=='ML_Cpp_net6' or '$(Configuration)'=='ML_Cpp_net472' or '$(Configuration)'=='STANDALONE_Cpp' or '$(Configuration)'=='BIE_Cpp'">
|
||||
<PackageReference Include="Il2CppAssemblyUnhollower.BaseLib" Version="0.4.22" IncludeAssets="compile" />
|
||||
<PackageReference Include="UniverseLib.IL2CPP" Version="1.*" />
|
||||
<PackageReference Include="UniverseLib.IL2CPP" Version="1.3.2" />
|
||||
</ItemGroup>
|
||||
<!-- mono nuget -->
|
||||
<ItemGroup Condition="'$(Configuration)'=='BIE6_Mono' or '$(Configuration)'=='BIE5_Mono' or '$(Configuration)'=='ML_Mono' or '$(Configuration)'=='STANDALONE_Mono'">
|
||||
<PackageReference Include="UniverseLib.Mono" Version="1.*" />
|
||||
<PackageReference Include="UniverseLib.Mono" Version="1.3.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- ~~~~~ ASSEMBLY REFERENCES ~~~~~ -->
|
||||
|
Loading…
Reference in New Issue
Block a user