forked from mjrgh/DirectOutput
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildRelease.bat
45 lines (36 loc) · 1.27 KB
/
BuildRelease.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
40
41
42
43
44
45
@echo off
rem DirectOutput Release Builder script
if %1# == # (
echo usage: BuildRelease ^<author-tag^>
echo.
echo ^<author-tag^> is a short identifier, such as your initials, that will be embedded
echo in the .msi and .zip filenames to help identify the source of the build files, if you
echo plan to distribute them.
goto EOF
)
rem Clean the release configurations
echo ^>^>^> Removing old builds
msbuild DirectOutput.sln -t:Clean -p:Configuration=Release;Platform=x86 -v:q -nologo
if errorlevel 1 goto abort
msbuild DirectOutput.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 DirectOutput.sln -t:Build -p:Configuration=Release;Platform=x86 -v:q -nologo
if errorlevel 1 goto abort
echo.
echo ^>^>^> Building Release^|x64
msbuild DirectOutput.sln -t:Build -p:Configuration=Release;Platform=x64 -v:q -nologo
if errorlevel 1 goto abort
rem Build the release files
echo.
echo ^>^>^> Creating release packages in .\Builds
call MakeZip x86 release %1
call MakeZip x64 release %1
rem successful completion
echo === Build completed successfully ===
goto EOF
:abort
echo MSBUILD exited with error - aborted
:EOF