-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.bat
42 lines (31 loc) · 892 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
@echo off
where git >NUL
if NOT ["%errorlevel%"] == ["0"] (
echo git not found on PATH, make sure git is installed and you cloned the repository
pause
exit /b %errorlevel%
)
echo installing jsnice and prettier
call npm i -g jsnice
call npm i -g prettier
echo Restoring git submodules
git submodule update --init --recursive
if NOT ["%errorlevel%"] == ["0"] (
echo issue encountered while restoring git submodules
pause
exit /b %errorlevel%
)
where dotnet >NUL
if NOT ["%errorlevel%"]==["0"] (
echo dotnet not found on PATH, ensure that .NET 5 is installed
pause
exit /b %errorlevel%
)
echo building Lunacy.Path
dotnet build Lunacy.Patch/Lunacy.Patch.csproj --configuration Debug
if NOT ["%errorlevel%"]==["0"] (
echo issue encountered while building Lunacy.Patch
pause
exit /b %errorlevel%
)
dotnet Lunacy.Patch/bin/Debug/net5.0/Lunacy.Patch.dll