-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBuildAll.bat
42 lines (32 loc) · 1.13 KB
/
BuildAll.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
echo off
SET VS=14.0
SET BUILDER=%ProgramFiles(x86)%\MSBuild\%VS%\Bin\MSBuild.exe
SET Target64=x64\Release
SET Target32=Win32\Release
SET DigiCertUtil=%USERPROFILE%\DESKTOP\DigiCertUtil.exe
:build32
echo %DATE% %TIME%: Cleaning vGen (x86)
"%BUILDER%" vGen.sln /maxcpucount:1 /t:clean /p:Platform=x86;Configuration=Release
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
echo %DATE% %TIME%: Building vGen (x86)
"%BUILDER%" vGen.sln /maxcpucount:4 /t:rebuild /p:Platform=x86;Configuration=Release
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
:build64
echo %DATE% %TIME%: Cleaning vGen (x64)
"%BUILDER%" vGen.sln /maxcpucount:1 /t:clean /p:Platform=x64;Configuration=Release
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
echo %DATE% %TIME%: Building vGen (x64)
"%BUILDER%" vGen.sln /maxcpucount:4 /t:rebuild /p:Platform=x64;Configuration=Release
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
:NOUTIL
echo %DATE% %TIME%: Could not find DigiCertUtil on the desktop
goto fail
:NOINNO
echo %DATE% %TIME%: Could not find Inno Setup Compiler
goto fail
:fail
exit /b 1