-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.bat
81 lines (73 loc) · 3.7 KB
/
build.bat
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@echo off
@echo MultiServer build script 05/10/2024
@echo.
@echo Cleaning up directories:
@rmdir /S /Q ~BuildOutput
@echo.
:Build
@echo Building MultiServer...
dotnet restore MultiServer3.sln
dotnet clean MultiServer3.sln
dotnet build MultiServer3.sln --configuration Debug --property WarningLevel=0
dotnet build MultiServer3.sln --configuration Release --property WarningLevel=0
@echo Copying build output to ~BuildOutput...
xcopy /E /Y /I "SpecializedServers/Horizon/bin" "~BuildOutput/MultiServer"
xcopy /E /Y /I "SpecializedServers/MultiSocks/bin" "~BuildOutput/MultiServer"
xcopy /E /Y /I "SpecializedServers/QuazalServer/bin" "~BuildOutput/MultiServer"
xcopy /E /Y /I "SpecializedServers/SSFWServer/bin" "~BuildOutput/MultiServer"
xcopy /E /Y /I "SpecializedServers/SVO/bin" "~BuildOutput/MultiServer"
xcopy /E /Y /I "SpecializedServers/MultiSpy/bin" "~BuildOutput/MultiServer"
xcopy /E /Y /I "WebServers/HTTPSecureServerLite/bin" "~BuildOutput/MultiServer"
xcopy /E /Y /I "WebServers/HTTPServer/bin" "~BuildOutput/MultiServer"
xcopy /E /Y /I "WebServers/MitmDNS/bin" "~BuildOutput/MultiServer"
if exist "Plugins/HTTP/HomeWebTools/bin/Debug/net6.0/static" (
xcopy /E /Y /I "Plugins/HTTP/HomeWebTools/bin/Debug/net6.0/static" "~BuildOutput/MultiServer/Debug/net6.0/static"
)
if exist "Plugins/HTTP/HomeWebTools/bin/Release/net6.0/static" (
xcopy /E /Y /I "Plugins/HTTP/HomeWebTools/bin/Release/net6.0/static" "~BuildOutput/MultiServer/Release/net6.0/static"
)
if exist "Plugins/HTTP/EdNetCRCCalculator/bin/Debug/net6.0/static" (
xcopy /E /Y /I "Plugins/HTTP/EdNetCRCCalculator/bin/Debug/net6.0/static" "~BuildOutput/MultiServer/Debug/net6.0/static"
)
if exist "Plugins/HTTP/EdNetCRCCalculator/bin/Release/net6.0/static" (
xcopy /E /Y /I "Plugins/HTTP/EdNetCRCCalculator/bin/Release/net6.0/static" "~BuildOutput/MultiServer/Release/net6.0/static"
)
if exist "Plugins/HTTP/PdfToJpeg/bin/Debug/net6.0/static" (
xcopy /E /Y /I "Plugins/HTTP/PdfToJpeg/bin/Debug/net6.0/static" "~BuildOutput/MultiServer/Debug/net6.0/static"
)
if exist "Plugins/HTTP/PdfToJpeg/bin/Release/net6.0/static" (
xcopy /E /Y /I "Plugins/HTTP/PdfToJpeg/bin/Release/net6.0/static" "~BuildOutput/MultiServer/Release/net6.0/static"
)
if exist "Plugins/HTTP/PdfToJpeg/bin/Debug/net6.0/runtimes" (
xcopy /E /Y /I "Plugins/HTTP/PdfToJpeg/bin/Debug/net6.0/runtimes" "~BuildOutput/MultiServer/Debug/net6.0/runtimes"
)
if exist "Plugins/HTTP/PdfToJpeg/bin/Release/net6.0/runtimes" (
xcopy /E /Y /I "Plugins/HTTP/PdfToJpeg/bin/Release/net6.0/runtimes" "~BuildOutput/MultiServer/Release/net6.0/runtimes"
)
xcopy /E /Y /I "Tools/Home/NautilusXP2024/bin" "~BuildOutput/Nautilus"
@echo Crafting final output:
if exist "~BuildOutput/MultiServer/Debug/net6.0" (
xcopy /E /Y /I "~BuildOutput/MultiServer/Debug/net6.0" "~BuildOutput/MultiServer/Debug"
@rmdir /S /Q "~BuildOutput/MultiServer/Debug/net6.0"
)
if exist "~BuildOutput/MultiServer/Release/net6.0" (
xcopy /E /Y /I "~BuildOutput/MultiServer/Release/net6.0" "~BuildOutput/MultiServer/Release"
@rmdir /S /Q "~BuildOutput/MultiServer/Release/net6.0"
)
if exist "~BuildOutput/Nautilus/Debug/net6.0-windows" (
xcopy /E /Y /I "~BuildOutput/Nautilus/Debug/net6.0-windows" "~BuildOutput/Nautilus/Debug"
@rmdir /S /Q "~BuildOutput/Nautilus/Debug/net6.0-windows"
)
if exist "~BuildOutput/Nautilus/Release/net6.0-windows" (
xcopy /E /Y /I "~BuildOutput/Nautilus/Release/net6.0-windows" "~BuildOutput/Nautilus/Release"
@rmdir /S /Q "~BuildOutput/Nautilus/Release/net6.0-windows"
)
@echo.
@echo Cleaning up temp build files and directories:
for /d /r . %%d in (bin,obj,".vs") do @if exist "%%d" rd /s/q "%%d"
@echo.
@echo.
@echo All platforms and kinds of packages are processed.
@echo.
@echo Build completed successfully.
@pause