-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
packing.ps1
39 lines (27 loc) · 2.13 KB
/
packing.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Write-Host "Init Env..."
pip install -r requirements.txt
mkdir -Path ExtremeRoles/Resources -Force
mkdir -Path ExtremeSkins/Resources/Asset -Force
Write-Host "Start Build!!"
msbuild ExtremeRoles.sln -t:restore,rebuild -p:Configuration=Release -p:RestorePackagesConfig=true
mkdir -Path workspace -Force
Write-Host "Build Complete!!"
Write-Host "Download BepInEx...."
Invoke-WebRequest "https://builds.bepinex.dev/projects/bepinex_be/671/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.671%2B9caf61d.zip" -OutFile workspace/bepinex.zip
Expand-Archive -Path workspace/bepinex.zip -DestinationPath workspace/bepinex -Force
Write-Host "Create Packing..."
mkdir -Path workspace/bepinex/BepInEx/config -Force
mkdir -Path workspace/bepinex/BepInEx/plugins -Force
New-Item workspace/bepinex/steam_appid.txt
Set-Content workspace/bepinex/steam_appid.txt '945360'
Copy-Item -Path ExtremeRoles/Resources/Config/*.cfg -Destination workspace/bepinex/BepInEx/config -Force -Recurse
Copy-Item -Path workspace/bepinex -Destination workspace/ExtremeRoles -Force -Recurse
Copy-Item -Path workspace/bepinex -Destination workspace/ExtremeRolesWithSkins -Force -Recurse
mkdir -Path workspace/dll -Force
Copy-Item -Path ExtremeRoles/bin/Release/net6.0/ExtremeRoles.dll -Destination workspace/ExtremeRoles/BepInEx/plugins/ExtremeRoles.dll -Force -Recurse
Copy-Item -Path ExtremeRoles/bin/Release/net6.0/ExtremeRoles.dll -Destination workspace/ExtremeRolesWithSkins/BepInEx/plugins/ExtremeRoles.dll -Force -Recurse
Copy-Item -Path ExtremeSkins/bin/Release/net6.0/ExtremeSkins.dll -Destination workspace/ExtremeRolesWithSkins/BepInEx/plugins/ExtremeSkins.dll -Force -Recurse
Copy-Item -Path ExtremeRoles/bin/Release/net6.0/ExtremeRoles.dll -Destination workspace/dll/ExtremeRoles.dll -Force -Recurse
Copy-Item -Path ExtremeSkins/bin/Release/net6.0/ExtremeSkins.dll -Destination workspace/dll/ExtremeSkins.dll -Force -Recurse
Copy-Item -Path ExtremeVoiceEngine/bin/Release/net6.0/ExtremeVoiceEngine.dll -Destination workspace/dll/ExtremeVoiceEngine.dll -Force -Recurse
Copy-Item -Path ExtremeRoles.Test/bin/Release/net6.0/ExtremeRoles.Test.dll -Destination workspace/dll/ExtremeRoles.Test.dll -Force -Recurse