Skip to content

Commit 5d6d431

Browse files
committed
build: update master branch ci [-noci]
1 parent 460f85f commit 5d6d431

File tree

2 files changed

+38
-266
lines changed

2 files changed

+38
-266
lines changed

.github/workflows/dotnet.yml

Lines changed: 20 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -16,104 +16,51 @@ jobs:
1616
# Setup
1717

1818
- name: Checkout latest
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
submodules: true
22+
23+
- name: Checkout private tools
24+
uses: actions/checkout@v4
25+
with:
26+
repository: ${{ secrets.NR_INTEROP_REPO }}
27+
token: ${{ secrets.NR_INTEROP_TOKEN }}
28+
path: NR_INTEROP
29+
2230
- name: Setup dotnet
23-
uses: actions/setup-dotnet@v3
31+
uses: actions/setup-dotnet@v4
2432
with:
25-
dotnet-version: '6.x'
33+
dotnet-version: "6.x"
2634
# Run build script
2735
- name: Build UE
2836
run: ./build.ps1
2937

3038
# Upload artifacts
31-
- name: Upload BepInEx.IL2CPP
32-
uses: actions/upload-artifact@v3
33-
with:
34-
name: CinematicUnityExplorer.BepInEx.IL2CPP.zip
35-
path: ./Release/CinematicUnityExplorer.BepInEx.IL2CPP/
36-
37-
- name: Upload BepInEx.IL2CPP.CoreCLR
38-
uses: actions/upload-artifact@v3
39-
with:
40-
name: CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR.zip
41-
path: ./Release/CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR/
42-
4339
- name: Upload BepInEx.Unity.IL2CPP.CoreCLR
44-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4541
with:
4642
name: CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR.zip
47-
path: ./Release/CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR/
48-
49-
- name: Upload BepInEx5.Mono
50-
uses: actions/upload-artifact@v3
51-
with:
52-
name: CinematicUnityExplorer.BepInEx5.Mono.zip
53-
path: ./Release/CinematicUnityExplorer.BepInEx5.Mono/
54-
55-
- name: Upload BepInEx6.Mono
56-
uses: actions/upload-artifact@v3
57-
with:
58-
name: CinematicUnityExplorer.BepInEx6.Mono.zip
59-
path: ./Release/CinematicUnityExplorer.BepInEx6.Mono/
60-
61-
- name: Upload BepInEx6.Unity.Mono
62-
uses: actions/upload-artifact@v3
63-
with:
64-
name: CinematicUnityExplorer.BepInEx6.Unity.Mono.zip
65-
path: ./Release/CinematicUnityExplorer.BepInEx6.Unity.Mono/
43+
path: ./Release/CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR/output
6644

6745
- name: Upload MelonLoader.IL2CPP
68-
uses: actions/upload-artifact@v3
46+
uses: actions/upload-artifact@v4
6947
with:
7048
name: CinematicUnityExplorer.MelonLoader.IL2CPP.zip
71-
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP/
72-
73-
- name: Upload MelonLoader.IL2CPP.net6preview
74-
uses: actions/upload-artifact@v3
75-
with:
76-
name: CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview.zip
77-
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview/
49+
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP/output
7850

7951
- name: Upload MelonLoader.IL2CPP.CoreCLR
80-
uses: actions/upload-artifact@v3
52+
uses: actions/upload-artifact@v4
8153
with:
8254
name: CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR.zip
83-
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR/
84-
85-
- name: Upload MelonLoader.Mono
86-
uses: actions/upload-artifact@v3
87-
with:
88-
name: CinematicUnityExplorer.MelonLoader.Mono.zip
89-
path: ./Release/CinematicUnityExplorer.MelonLoader.Mono/
90-
91-
- name: Upload Standalone.IL2CPP
92-
uses: actions/upload-artifact@v3
93-
with:
94-
name: CinematicUnityExplorer.Standalone.IL2CPP.zip
95-
path: ./Release/CinematicUnityExplorer.Standalone.IL2CPP/
96-
97-
- name: Upload Standalone.Mono
98-
uses: actions/upload-artifact@v3
99-
with:
100-
name: CinematicUnityExplorer.Standalone.Mono.zip
101-
path: ./Release/CinematicUnityExplorer.Standalone.Mono/
102-
103-
- name: Upload Editor
104-
uses: actions/upload-artifact@v3
105-
with:
106-
name: CinematicUnityExplorer.Editor.zip
107-
path: ./UnityEditorPackage/
108-
55+
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR/output
10956

11057
build_connector:
11158
runs-on: windows-latest
11259
if: "!contains(github.event.head_commit.message, '-noci')"
11360

11461
steps:
11562
- name: Checkout latest
116-
uses: actions/checkout@v3
63+
uses: actions/checkout@v4
11764
with:
11865
submodules: true
11966

@@ -127,13 +74,13 @@ jobs:
12774
run: ./build_connector.ps1
12875

12976
- name: Upload Unity IGCS Connector
130-
uses: actions/upload-artifact@v3
77+
uses: actions/upload-artifact@v4
13178
with:
13279
name: UnityIGCSConnector.dll
13380
path: ./Release/UnityIGCSConnector.dll
13481

13582
- name: Upload Unity IGCS Connector 32bit
136-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v4
13784
with:
13885
name: UnityIGCSConnector.32.dll
13986
path: ./Release/UnityIGCSConnector.32.dll

build.ps1

Lines changed: 18 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -2,216 +2,41 @@ cd UniverseLib
22
.\build.ps1
33
cd ..
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

Comments
 (0)