forked from tModLoader/tModLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.bat
44 lines (36 loc) · 895 Bytes
/
setup.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
@echo off
where git >NUL
if NOT ["%errorlevel%"]==["0"] (
echo git not found on PATH
pause
exit /b %errorlevel%
)
echo Restoring git submodules
git submodule update --init --recursive
if NOT ["%errorlevel%"]==["0"] (
pause
exit /b %errorlevel%
)
where dotnet >NUL
if NOT ["%errorlevel%"]==["0"] (
echo dotnet not found on PATH. Install .NET Core!
pause
exit /b %errorlevel%
)
If "%1"=="auto" (
echo building setupAuto.csproj
dotnet build setup/setupAuto.csproj --output "setup/bin/Debug/net6.0-windows"
if NOT ["%errorlevel%"]==["0"] (
pause
exit /b %errorlevel%
)
"setup/bin/Debug/net6.0-windows/setupAuto.exe" %2
) Else (
echo building setup.csproj
dotnet build setup/setup.csproj --output "setup/bin/Debug/net6.0-windows"
if NOT ["%errorlevel%"]==["0"] (
pause
exit /b %errorlevel%
)
start "" "setup/bin/Debug/net6.0-windows/setup.exe" %*
)