-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathBuildAndRelease.bat
39 lines (31 loc) · 987 Bytes
/
BuildAndRelease.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
@echo off
rem PinballY Release Builder
rem
rem Run from a Visual Studio CMD prompt window
rem
rem Clean old builds
echo ^>^>^> Removing old builds
del VersionInfoUpdater\Generated\VersionInfo.cpp
msbuild PinballY.sln -t:Clean -p:Configuration=Release;Platform=x86 -v:q -nologo
if errorlevel 1 goto abort
msbuild PinballY.sln -t:Clean -p:Configuration=Release;Platform=x64 -v:q -nologo
if errorlevel 1 goto abort
rem Build the release configurations
echo.
echo ^>^>^> Building Release^|x86
msbuild PinballY.sln -t:Build -p:Configuration=Release;Platform=x86 -v:q -nologo
if errorlevel 1 goto abort
echo.
echo ^>^>^> Building Release^|x64
msbuild PinballY.sln -t:Build -p:Configuration=Release;Platform=x64 -v:q -nologo
if errorlevel 1 goto abort
rem Run the release ZIP builder
echo.
echo ^>^>^> Building release packages
call .\release.bat
echo.
echo ^>^>^> Release completed
goto EOF
:abort
echo MSBUILD exited with error - aborted
:EOF