3 REM - batch file to build VS2010 project and zip the resulting binaries (or make installer)
\r
4 REM - updating version numbers requires python and python path added to %PATH% env variable
\r
5 REM - zipping requires 7zip in %ProgramFiles%\7-Zip\7z.exe
\r
6 REM - building installer requires innotsetup in "%ProgramFiles(x86)%\Inno Setup 5\iscc"
\r
7 REM - AAX codesigning requires ashelper tool added to %PATH% env variable and aax.key/.crt in .\..\..\..\Certificates\
\r
9 echo Making IPlugHostDetect win distribution ...
\r
11 echo ------------------------------------------------------------------
\r
12 echo Updating version numbers ...
\r
14 call python update_version.py
\r
16 echo ------------------------------------------------------------------
\r
19 if exist "%ProgramFiles(x86)%" (goto 64-Bit) else (goto 32-Bit)
\r
22 echo 32-Bit O/S detected
\r
23 call "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
\r
27 echo 64-Bit Host O/S detected
\r
28 call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
\r
32 REM - set preprocessor macros like this, for instance to enable demo build:
\r
33 REM - SET CMDLINE_DEFINES="DEMO_VERSION"
\r
35 REM - Could build individual targets like this:
\r
36 REM - msbuild IPlugHostDetect-app.vcxproj /p:configuration=release /p:platform=win32
\r
38 msbuild IPlugHostDetect.sln /p:configuration=release /p:platform=win32 /nologo /noconsolelogger /fileLogger /v:quiet /flp:logfile=build-win.log;errorsonly
\r
39 msbuild IPlugHostDetect.sln /p:configuration=release /p:platform=x64 /nologo /noconsolelogger /fileLogger /v:quiet /flp:logfile=build-win.log;errorsonly;append
\r
41 #echo ------------------------------------------------------------------
\r
42 #echo Code sign aax binary...
\r
46 REM - Make Installer (InnoSetup)
\r
48 echo ------------------------------------------------------------------
\r
49 echo Making Installer ...
\r
51 if exist "%ProgramFiles(x86)%" (goto 64-Bit-is) else (goto 32-Bit-is)
\r
54 "%ProgramFiles%\Inno Setup 5\iscc" /cc ".\installer\IPlugHostDetect.iss"
\r
58 "%ProgramFiles(x86)%\Inno Setup 5\iscc" /cc ".\installer\IPlugHostDetect.iss"
\r
64 REM - "%ProgramFiles%\7-Zip\7z.exe" a .\installer\IPlugHostDetect-win-32bit.zip .\build-win\app\win32\bin\IPlugHostDetect.exe .\build-win\vst3\win32\bin\IPlugHostDetect.vst3 .\build-win\vst2\win32\bin\IPlugHostDetect.dll .\build-win\rtas\bin\IPlugHostDetect.dpm .\build-win\rtas\bin\IPlugHostDetect.dpm.rsr .\build-win\aax\bin\IPlugHostDetect.aaxplugin* .\installer\license.rtf .\installer\readmewin.rtf
\r
65 REM - "%ProgramFiles%\7-Zip\7z.exe" a .\installer\IPlugHostDetect-win-64bit.zip .\build-win\app\x64\bin\IPlugHostDetect.exe .\build-win\vst3\x64\bin\IPlugHostDetect.vst3 .\build-win\vst2\x64\bin\IPlugHostDetect.dll .\installer\license.rtf .\installer\readmewin.rtf
\r
67 echo ------------------------------------------------------------------
\r
68 echo Printing log file to console...
\r