23 lines
550 B
Batchfile
23 lines
550 B
Batchfile
@echo off
|
|
@setlocal
|
|
SETLOCAL
|
|
if [%3] == [r] (
|
|
set build_type=release
|
|
) else (
|
|
set build_type=debug
|
|
)
|
|
echo %build_type%
|
|
if "%SPARKVM_PORT%"=="" set SPARKVM_PORT=22
|
|
echo.
|
|
|
|
pushd %~dp0\..\src\client\sparkcmd
|
|
|
|
dotnet publish -f netcoreapp2.1
|
|
cd ..\..\..\build\Debug\bin\netcoreapp2.1\publish
|
|
bash -c "scp * bts@sparkvm:~/spark/build/ninja_%build_type%/server/"
|
|
|
|
ssh bts@sparkvm -p %SPARKVM_PORT% -o StrictHostKeyChecking=no -t "cd /home/bts/spark/build/ninja_%build_type%/server && dotnet sparkcmd.dll test %1 %2"
|
|
ENDLOCAL
|
|
|
|
popd
|