-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_only.cmd
More file actions
27 lines (19 loc) · 773 Bytes
/
build_only.cmd
File metadata and controls
27 lines (19 loc) · 773 Bytes
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
@echo off
set PATH=%PATH%;C:\Program Files (x86)\git\bin;C:\Program Files\git\bin
git --version > NUL
@if errorlevel 1 goto MISSINGGIT
dotnet build .\src\GeneticAlgorithmBot.sln -c Release --no-incremental > NUL
@if not errorlevel 0 goto DOTNETBUILDFAILED
dotnet build .\src\GeneticAlgorithmBot.sln -c Release
@if errorlevel 1 goto DOTNETBUILDFAILED
@cp .\src\bin\Release\net48\GeneticAlgorithmBot.dll .\BizHawk\ExternalTools\ 2>nul
@if errorlevel 1 copy .\src\bin\Release\net48\GeneticAlgorithmBot.dll .\BizHawk\ExternalTools\
goto END
:DOTNETBUILDFAILED
set ERRORLEVEL=1
@echo dotnet build failed. Usual cause: user committed broken code, or unavailable dotnet sdk
goto END
:MISSINGGIT
set ERRORLEVEL=1
@echo missing git.exe. can't make distro without that.
:END