forked from chrisbutner/ChessCoach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
32 lines (24 loc) · 1.36 KB
/
build.cmd
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
pushd "%~dp0"
call activate_virtual_env.cmd
call msbuild.cmd cpp\ChessCoach.sln -t:restore -p:RestorePackagesConfig=true
if %errorlevel% neq 0 exit /b
call msbuild.cmd cpp\ChessCoach.sln -t:Stockfish;hunspell;protobuf;crc32c -p:Configuration=Release -p:Platform=x64 -p:PostBuildEventUseInBuild=false -m
if %errorlevel% neq 0 exit /b
call msbuild.cmd cpp\ChessCoach.sln -t:ChessCoach -p:Configuration=Release -p:Platform=x64 -p:PostBuildEventUseInBuild=false -m
if %errorlevel% neq 0 exit /b
call msbuild.cmd cpp\ChessCoach.sln -t:ChessCoachUci;ChessCoachTest;ChessCoachTrain;ChessCoachPgnToGames;ChessCoachStrengthTest;ChessCoachGui;ChessCoachOptimizeParameters;ChessCoachBot -p:Configuration=Release -p:Platform=x64 -p:PostBuildEventUseInBuild=false -m
if %errorlevel% neq 0 exit /b
call cpp\postbuild.cmd cpp\ cpp\x64\Release\
if %errorlevel% neq 0 exit /b
robocopy cpp\x64\Release dist\ *.exe *.dll *.py *.toml
if ErrorLevel 8 (exit /B 1)
robocopy cpp\x64\Release\js dist\js\ /E
if ErrorLevel 8 (exit /B 1)
robocopy cpp\x64\Release\StrengthTests dist\StrengthTests\
if ErrorLevel 8 (exit /B 1)
robocopy cpp\x64\Release\Dictionaries dist\Dictionaries\ /E
if ErrorLevel 8 (exit /B 1)
echo ********************************************************************************
echo Installed at %~dp0dist
echo ********************************************************************************
popd