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 IPlugPlush 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 IPlugPlush-app.vcxproj /p:configuration=release /p:platform=win32
\r
38 msbuild IPlugPlush.sln /p:configuration=release /p:platform=win32 /nologo /noconsolelogger /fileLogger /v:quiet /flp:logfile=build-win.log;errorsonly
\r
39 msbuild IPlugPlush.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\IPlugPlush.iss"
\r
58 "%ProgramFiles(x86)%\Inno Setup 5\iscc" /cc ".\installer\IPlugPlush.iss"
\r
64 REM - "%ProgramFiles%\7-Zip\7z.exe" a .\installer\IPlugPlush-win-32bit.zip .\build-win\app\win32\bin\IPlugPlush.exe .\build-win\vst3\win32\bin\IPlugPlush.vst3 .\build-win\vst2\win32\bin\IPlugPlush.dll .\build-win\rtas\bin\IPlugPlush.dpm .\build-win\rtas\bin\IPlugPlush.dpm.rsr .\build-win\aax\bin\IPlugPlush.aaxplugin* .\installer\license.rtf .\installer\readmewin.rtf
\r
65 REM - "%ProgramFiles%\7-Zip\7z.exe" a .\installer\IPlugPlush-win-64bit.zip .\build-win\app\x64\bin\IPlugPlush.exe .\build-win\vst3\x64\bin\IPlugPlush.vst3 .\build-win\vst2\x64\bin\IPlugPlush.dll .\installer\license.rtf .\installer\readmewin.rtf
\r
67 echo ------------------------------------------------------------------
\r
68 echo Printing log file to console...
\r