@@ -2,216 +2,41 @@ cd UniverseLib
22.\build.ps1
33cd ..
44
5- # ----------- MelonLoader IL2CPP (net6) -----------
6- dotnet build src/ CinematicUnityExplorer.sln - c Release_ML_Cpp_net6preview
7- $Path = " Release\CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview"
8- # ILRepack
9- lib/ ILRepack.exe / target:library / lib:lib/ net6 / lib:lib/ unhollowed / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.ML.IL2CPP.net6preview.dll $Path / CinematicUnityExplorer.ML.IL2CPP.net6preview.dll $Path / mcs.dll
10- # (cleanup and move files)
11- Remove-Item $Path / CinematicUnityExplorer.ML.IL2CPP.net6preview.deps.json
12- Remove-Item $Path / Tomlet.dll
13- Remove-Item $Path / mcs.dll
14- Remove-Item $Path / Iced.dll
15- Remove-Item $Path / UnhollowerBaseLib.dll
16- New-Item - Path " $Path " - Name " Mods" - ItemType " directory" - Force
17- Move-Item - Path $Path / CinematicUnityExplorer.ML.IL2CPP.net6preview.dll - Destination $Path / Mods - Force
18- New-Item - Path " $Path " - Name " UserLibs" - ItemType " directory" - Force
19- Move-Item - Path $Path / UniverseLib.IL2CPP.Unhollower.dll - Destination $Path / UserLibs - Force
20- # (create zip archive)
21- Remove-Item $Path / ../ CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview.zip - ErrorAction SilentlyContinue
22- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview.zip
23-
245# ----------- MelonLoader IL2CPP CoreCLR (net6) -----------
25- dotnet build src/ CinematicUnityExplorer.sln - c Release_ML_Cpp_CoreCLR
6+ dotnet build src/ CinematicUnityExplorer.sln - c Release_ML_Cpp_CoreCLR - p:IS_CI = true
267$Path = " Release\CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR"
8+
9+ New-Item - ItemType Directory - Path " $Path /output/Mods" - Force
10+ New-Item - ItemType Directory - Path " $Path /output/UserLibs" - Force
11+
2712# ILRepack
28- lib/ ILRepack.exe / target:library / lib:lib/ net6 / lib:lib/ interop / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.ML.IL2CPP.CoreCLR.dll $Path / CinematicUnityExplorer.ML.IL2CPP.CoreCLR.dll $Path / mcs.dll
29- # (cleanup and move files)
30- Remove-Item $Path / CinematicUnityExplorer.ML.IL2CPP.CoreCLR.deps.json
31- Remove-Item $Path / Tomlet.dll
32- Remove-Item $Path / mcs.dll
33- Remove-Item $Path / Iced.dll
34- Remove-Item $Path / Il2CppInterop.Common.dll
35- Remove-Item $Path / Il2CppInterop.Runtime.dll
36- Remove-Item $Path / Microsoft.Extensions.Logging.Abstractions.dll
37- New-Item - Path " $Path " - Name " Mods" - ItemType " directory" - Force
38- Move-Item - Path $Path / CinematicUnityExplorer.ML.IL2CPP.CoreCLR.dll - Destination $Path / Mods - Force
39- New-Item - Path " $Path " - Name " UserLibs" - ItemType " directory" - Force
40- Move-Item - Path $Path / UniverseLib.ML.IL2CPP.Interop.dll - Destination $Path / UserLibs - Force
41- # (create zip archive)
42- Remove-Item $Path / ../ CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR.zip - ErrorAction SilentlyContinue
43- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR.zip
13+ lib/ ILRepack.exe / target:library / lib:lib/ net6 / lib:lib/ interop / lib:$Path / internalize / out:$Path / output/ Mods/ CinematicUnityExplorer.ML.IL2CPP.CoreCLR.dll $Path / CinematicUnityExplorer.ML.IL2CPP.CoreCLR.dll $Path / mcs.dll
14+
15+ Move-Item - Path $Path / UniverseLib.ML.IL2CPP.Interop.dll - Destination $Path / output/ UserLibs - Force
4416
4517# ----------- MelonLoader IL2CPP (net472) -----------
46- dotnet build src/ CinematicUnityExplorer.sln - c Release_ML_Cpp_net472
18+ dotnet build src/ CinematicUnityExplorer.sln - c Release_ML_Cpp_net472 - p:IS_CI = true
4719$Path = " Release/CinematicUnityExplorer.MelonLoader.IL2CPP"
48- # ILRepack
49- lib/ ILRepack.exe / target:library / lib:lib/ net472 / lib:lib/ net35 / lib:lib/ unhollowed / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.ML.IL2CPP.dll $Path / CinematicUnityExplorer.ML.IL2CPP.dll $Path / mcs.dll
50- # (cleanup and move files)
51- Remove-Item $Path / Tomlet.dll
52- Remove-Item $Path / mcs.dll
53- Remove-Item $Path / Iced.dll
54- Remove-Item $Path / UnhollowerBaseLib.dll
55- New-Item - Path " $Path " - Name " Mods" - ItemType " directory" - Force
56- Move-Item - Path $Path / CinematicUnityExplorer.ML.IL2CPP.dll - Destination $Path / Mods - Force
57- New-Item - Path " $Path " - Name " UserLibs" - ItemType " directory" - Force
58- Move-Item - Path $Path / UniverseLib.IL2CPP.Unhollower.dll - Destination $Path / UserLibs - Force
59- # (create zip archive)
60- Remove-Item $Path / ../ CinematicUnityExplorer.MelonLoader.IL2CPP.zip - ErrorAction SilentlyContinue
61- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.MelonLoader.IL2CPP.zip
6220
63- # ----------- MelonLoader Mono -----------
64- dotnet build src/ CinematicUnityExplorer.sln - c Release_ML_Mono
65- $Path = " Release/CinematicUnityExplorer.MelonLoader.Mono"
66- # ILRepack
67- lib/ ILRepack.exe / target:library / lib:lib/ net35 / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.ML.Mono.dll $Path / CinematicUnityExplorer.ML.Mono.dll $Path / mcs.dll
68- # (cleanup and move files)
69- Remove-Item $Path / Tomlet.dll
70- Remove-Item $Path / mcs.dll
71- New-Item - Path " $Path " - Name " Mods" - ItemType " directory" - Force
72- Move-Item - Path $Path / CinematicUnityExplorer.ML.Mono.dll - Destination $Path / Mods - Force
73- New-Item - Path " $Path " - Name " UserLibs" - ItemType " directory" - Force
74- Move-Item - Path $Path / UniverseLib.Mono.dll - Destination $Path / UserLibs - Force
75- # (create zip archive)
76- Remove-Item $Path / ../ CinematicUnityExplorer.MelonLoader.Mono.zip - ErrorAction SilentlyContinue
77- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.MelonLoader.Mono.zip
21+ New-Item - ItemType Directory - Path " $Path /output/Mods" - Force
22+ New-Item - ItemType Directory - Path " $Path /output/UserLibs" - Force
7823
79- # ----------- BepInEx IL2CPP -----------
80- dotnet build src/ CinematicUnityExplorer.sln - c Release_BIE_Cpp
81- $Path = " Release/CinematicUnityExplorer.BepInEx.IL2CPP"
8224# ILRepack
83- lib/ ILRepack.exe / target:library / lib:lib/ net472/ BepInEx/ build423~577 / lib:lib/ unhollowed / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.BIE.IL2CPP.dll $Path / CinematicUnityExplorer.BIE.IL2CPP.dll $Path / mcs.dll $Path / Tomlet.dll
84- # (cleanup and move files)
85- Remove-Item $Path / Tomlet.dll
86- Remove-Item $Path / mcs.dll
87- Remove-Item $Path / Iced.dll
88- Remove-Item $Path / UnhollowerBaseLib.dll
89- New-Item - Path " $Path " - Name " plugins" - ItemType " directory" - Force
90- New-Item - Path " $Path " - Name " plugins/CinematicUnityExplorer" - ItemType " directory" - Force
91- Move-Item - Path $Path / CinematicUnityExplorer.BIE.IL2CPP.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
92- Move-Item - Path $Path / UniverseLib.IL2CPP.Unhollower.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
93- # (create zip archive)
94- Remove-Item $Path / ../ CinematicUnityExplorer.BepInEx.IL2CPP.zip - ErrorAction SilentlyContinue
95- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.BepInEx.IL2CPP.zip
25+ lib/ ILRepack.exe / target:library / lib:lib/ net472 / lib:lib/ net35 / lib:lib/ unhollowed / lib:$Path / internalize / out:$Path / output/ Mods/ CinematicUnityExplorer.ML.IL2CPP.dll $Path / CinematicUnityExplorer.ML.IL2CPP.dll $Path / mcs.dll
9626
97- # ----------- BepInEx IL2CPP CoreCLR -----------
98- dotnet build src/ CinematicUnityExplorer.sln - c Release_BIE_CoreCLR
99- $Path = " Release/CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR"
100- # ILRepack
101- lib/ ILRepack.exe / target:library / lib:lib/ net472/ BepInEx/ build423~577 / lib:lib/ net6/ / lib:lib/ interop/ / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.BIE.IL2CPP.CoreCLR.dll $Path / CinematicUnityExplorer.BIE.IL2CPP.CoreCLR.dll $Path / mcs.dll $Path / Tomlet.dll
10227# (cleanup and move files)
103- Remove-Item $Path / Tomlet.dll
104- Remove-Item $Path / mcs.dll
105- Remove-Item $Path / Iced.dll
106- Remove-Item $Path / Il2CppInterop.Common.dll
107- Remove-Item $Path / Il2CppInterop.Runtime.dll
108- Remove-Item $Path / Microsoft.Extensions.Logging.Abstractions.dll
109- Remove-Item $Path / CinematicUnityExplorer.BIE.IL2CPP.CoreCLR.deps.json
110- New-Item - Path " $Path " - Name " plugins" - ItemType " directory" - Force
111- New-Item - Path " $Path " - Name " plugins/CinematicUnityExplorer" - ItemType " directory" - Force
112- Move-Item - Path $Path / CinematicUnityExplorer.BIE.IL2CPP.CoreCLR.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
113- Move-Item - Path $Path / UniverseLib.BIE.IL2CPP.Interop.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
114- # (create zip archive)
115- Remove-Item $Path / ../ CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR.zip - ErrorAction SilentlyContinue
116- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR.zip
28+ Move-Item - Path $Path / UniverseLib.IL2CPP.Unhollower.dll - Destination $Path / output/ UserLibs - Force
11729
11830# ----------- BepInEx Unity IL2CPP CoreCLR -----------
119- dotnet build src/ CinematicUnityExplorer.sln - c Release_BIE_Unity_Cpp
31+ dotnet build src/ CinematicUnityExplorer.sln - c Release_BIE_Unity_Cpp - p:IS_CI = true
12032$Path = " Release/CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR"
121- # ILRepack
122- lib/ ILRepack.exe / target:library / lib:lib/ net472/ BepInEx/ build647+ / lib:lib/ net6/ / lib:lib/ interop/ / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.BIE.Unity.IL2CPP.CoreCLR.dll $Path / CinematicUnityExplorer.BIE.Unity.IL2CPP.CoreCLR.dll $Path / mcs.dll $Path / Tomlet.dll
123- # (cleanup and move files)
124- Remove-Item $Path / Tomlet.dll
125- Remove-Item $Path / mcs.dll
126- Remove-Item $Path / Iced.dll
127- Remove-Item $Path / Il2CppInterop.Common.dll
128- Remove-Item $Path / Il2CppInterop.Runtime.dll
129- Remove-Item $Path / Microsoft.Extensions.Logging.Abstractions.dll
130- Remove-Item $Path / CinematicUnityExplorer.BIE.Unity.IL2CPP.CoreCLR.deps.json
131- New-Item - Path " $Path " - Name " plugins" - ItemType " directory" - Force
132- New-Item - Path " $Path " - Name " plugins/CinematicUnityExplorer" - ItemType " directory" - Force
133- Move-Item - Path $Path / CinematicUnityExplorer.BIE.Unity.IL2CPP.CoreCLR.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
134- Move-Item - Path $Path / UniverseLib.BIE.IL2CPP.Interop.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
135- # (create zip archive)
136- Remove-Item $Path / ../ CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR.zip - ErrorAction SilentlyContinue
137- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR.zip
138-
139- # ----------- BepInEx 5 Mono -----------
140- dotnet build src/ CinematicUnityExplorer.sln - c Release_BIE5_Mono
141- $Path = " Release/CinematicUnityExplorer.BepInEx5.Mono"
142- # ILRepack
143- lib/ ILRepack.exe / target:library / lib:lib/ net35 / lib:lib/ net35/ BepInEx / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.BIE5.Mono.dll $Path / CinematicUnityExplorer.BIE5.Mono.dll $Path / mcs.dll $Path / Tomlet.dll
144- # (cleanup and move files)
145- Remove-Item $Path / Tomlet.dll
146- Remove-Item $Path / mcs.dll
147- New-Item - Path " $Path " - Name " plugins" - ItemType " directory" - Force
148- New-Item - Path " $Path " - Name " plugins/CinematicUnityExplorer" - ItemType " directory" - Force
149- Move-Item - Path $Path / CinematicUnityExplorer.BIE5.Mono.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
150- Move-Item - Path $Path / UniverseLib.Mono.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
151- # (create zip archive)
152- Remove-Item $Path / ../ CinematicUnityExplorer.BepInEx5.Mono.zip - ErrorAction SilentlyContinue
153- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.BepInEx5.Mono.zip
154-
155- # ----------- BepInEx 6 Mono -----------
156- dotnet build src/ CinematicUnityExplorer.sln - c Release_BIE6_Mono
157- $Path = " Release/CinematicUnityExplorer.BepInEx6.Mono"
158- # ILRepack
159- lib/ ILRepack.exe / target:library / lib:lib/ net35 / lib:lib/ net35/ BepInEx/ build423~577 / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.BIE6.Mono.dll $Path / CinematicUnityExplorer.BIE6.Mono.dll $Path / mcs.dll $Path / Tomlet.dll
160- # (cleanup and move files)
161- Remove-Item $Path / Tomlet.dll
162- Remove-Item $Path / mcs.dll
163- New-Item - Path " $Path " - Name " plugins" - ItemType " directory" - Force
164- New-Item - Path " $Path " - Name " plugins/CinematicUnityExplorer" - ItemType " directory" - Force
165- Move-Item - Path $Path / CinematicUnityExplorer.BIE6.Mono.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
166- Move-Item - Path $Path / UniverseLib.Mono.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
167- # (create zip archive)
168- Remove-Item $Path / ../ CinematicUnityExplorer.BepInEx6.Mono.zip - ErrorAction SilentlyContinue
169- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.BepInEx6.Mono.zip
33+ $OutputPath = " $Path /output/BepInEx/plugins/CinematicUnityExplorer"
17034
171- # ----------- BepInEx 6 Unity Mono -----------
172- dotnet build src/ CinematicUnityExplorer.sln - c Release_BIE6_Unity_Mono
173- $Path = " Release/CinematicUnityExplorer.BepInEx6.Unity.Mono"
174- # ILRepack
175- lib/ ILRepack.exe / target:library / lib:lib/ net35 / lib:lib/ net35/ BepInEx/ build647+ / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.BIE6.Unity.Mono.dll $Path / CinematicUnityExplorer.BIE6.Unity.Mono.dll $Path / mcs.dll $Path / Tomlet.dll
176- # (cleanup and move files)
177- Remove-Item $Path / Tomlet.dll
178- Remove-Item $Path / mcs.dll
179- New-Item - Path " $Path " - Name " plugins" - ItemType " directory" - Force
180- New-Item - Path " $Path " - Name " plugins/CinematicUnityExplorer" - ItemType " directory" - Force
181- Move-Item - Path $Path / CinematicUnityExplorer.BIE6.Unity.Mono.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
182- Move-Item - Path $Path / UniverseLib.Mono.dll - Destination $Path / plugins/ CinematicUnityExplorer - Force
183- # (create zip archive)
184- Remove-Item $Path / ../ CinematicUnityExplorer.BepInEx6.Unity.Mono.zip - ErrorAction SilentlyContinue
185- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.BepInEx6.Unity.Mono.zip
35+ New-Item - ItemType Directory - Path $OutputPath - Force
18636
187- # ----------- Standalone Mono -----------
188- dotnet build src/ CinematicUnityExplorer.sln - c Release_STANDALONE_Mono
189- $Path = " Release/CinematicUnityExplorer.Standalone.Mono"
19037# ILRepack
191- lib/ ILRepack.exe / target:library / lib:lib/ net35 / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.Standalone.Mono.dll $Path / CinematicUnityExplorer.Standalone.Mono.dll $Path / mcs.dll $Path / Tomlet.dll
192- # (cleanup and move files)
193- Remove-Item $Path / Tomlet.dll
194- Remove-Item $Path / mcs.dll
195- Remove-Item $Path / ../ CinematicUnityExplorer.Standalone.Mono.zip - ErrorAction SilentlyContinue
196- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.Standalone.Mono.zip
38+ lib/ ILRepack.exe / target:library / lib:lib/ net472/ BepInEx/ build647+ / lib:lib/ net6/ / lib:lib/ interop/ / lib:$Path / internalize / out:$OutputPath / CinematicUnityExplorer.BIE.Unity.IL2CPP.CoreCLR.dll $Path / CinematicUnityExplorer.BIE.Unity.IL2CPP.CoreCLR.dll $Path / mcs.dll $Path / Tomlet.dll
19739
198- # ----------- Standalone IL2CPP -----------
199- dotnet build src/ CinematicUnityExplorer.sln - c Release_STANDALONE_Cpp
200- $Path = " Release/CinematicUnityExplorer.Standalone.IL2CPP"
201- # ILRepack
202- lib/ ILRepack.exe / target:library / lib:lib/ net472 / lib:lib/ unhollowed / lib:$Path / internalize / out:$Path / CinematicUnityExplorer.Standalone.IL2CPP.dll $Path / CinematicUnityExplorer.Standalone.IL2CPP.dll $Path / mcs.dll $Path / Tomlet.dll
20340# (cleanup and move files)
204- Remove-Item $Path / Tomlet.dll
205- Remove-Item $Path / mcs.dll
206- Remove-Item $Path / Iced.dll
207- Remove-Item $Path / UnhollowerBaseLib.dll
208- Remove-Item $Path / ../ CinematicUnityExplorer.Standalone.IL2CPP.zip - ErrorAction SilentlyContinue
209- compress-archive .\$Path \* $Path / ../ CinematicUnityExplorer.Standalone.IL2CPP.zip
41+ Move-Item - Path $Path / UniverseLib.BIE.IL2CPP.Interop.dll - Destination $OutputPath - Force
21042
211- # ----------- Editor (mono) -----------
212- $Path1 = " Release/CinematicUnityExplorer.Standalone.Mono"
213- $Path2 = " UnityEditorPackage/Runtime"
214- Copy-Item $Path1 / CinematicUnityExplorer.STANDALONE.Mono.dll - Destination $Path2
215- Copy-Item $Path1 / UniverseLib.Mono.dll - Destination $Path2
216- Remove-Item Release/ CinematicUnityExplorer.Editor.zip - ErrorAction SilentlyContinue
217- compress-archive .\UnityEditorPackage\* Release/ CinematicUnityExplorer.Editor.zip
0 commit comments