-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.bat
44 lines (36 loc) · 902 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 --remote --merge
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/netcoreapp3.1"
if NOT ["%errorlevel%"]==["0"] (
pause
exit /b %errorlevel%
)
"setup/bin/Debug/netcoreapp3.1/setupAuto.exe"
) Else (
echo building setup.csproj
dotnet build setup/setup.csproj --output "setup/bin/Debug/netcoreapp3.1"
if NOT ["%errorlevel%"]==["0"] (
pause
exit /b %errorlevel%
)
start "" "setup/bin/Debug/netcoreapp3.1/setup.exe"
)