-
Notifications
You must be signed in to change notification settings - Fork 11
/
run.bat
43 lines (36 loc) · 875 Bytes
/
run.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
@echo off
set BINDIR=%~dp0\build\UAlbion\bin\Release\net6.0
if x%1 == xextract goto extract
if x%1 == xbuild goto build
if x%1 == xpublish goto publish
if x%1 == xsr goto sr
if x%1 == xds goto ds
dotnet run --project src\ualbion -- %*
goto end
:extract
dotnet run --project src\Tools\Exporter
goto end
:build
dotnet build -c Release src\ualbion.full.sln
copy /Y %BINDIR%\native\win-x64\SDL2.dll %BINDIR%
copy /Y deps\veldrid-spirv\bin\Debug\libveldrid-spirv.dll %BINDIR%
pushd %BINDIR%
goto end
:publish
set UALBION_PUB=%BINDIR%\publish
if not exist %UALBION_PUB% goto l1
RD /S /Q %UALBION_PUB%
:l1
dotnet publish -c Release src\ualbion.nodeps.sln
::copy libveldrid-spirv.dll %UALBION_PUB%
pushd %UALBION_PUB%
goto end
:sr
pushd albion
runjob SR-Main
popd
goto end
:ds
dotnet run --project src\Tools\DumpSave -- albion\SAVES\SAVE.%2 %3 %4 %5 %6 %7 %8 %9
goto end
:end