mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +00:00
21 lines
No EOL
721 B
Batchfile
21 lines
No EOL
721 B
Batchfile
@REM Delete so if builder fails it wont exist
|
|
del source2\Build\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.*
|
|
|
|
%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "source2\Builder.sln" /nologo /maxcpucount /p:Configuration=Debug /p:Platform=x86
|
|
|
|
@if not exist source2\Build\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.exe goto error
|
|
|
|
@for /f "tokens=4-6 delims=.] " %%i in ('ver') do set VERSION=%%i.%%j.%%k
|
|
|
|
@rem Windows 8.1 detect UAC, no task needed
|
|
@if "%version%" == "6.3.9600" set TASK=-NOTASK
|
|
|
|
start source2\Build\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.exe -bat %TASK% %1 %2 %3 %4 %5 %6 %7 %8 %9
|
|
|
|
@exit
|
|
|
|
:Error
|
|
@echo _
|
|
@echo _
|
|
@echo Something went wrong.
|
|
@pause |