ConvoEngine: Make max channel counts configurable.
[wdl/wdl-ol.git] / IPlugExamples / IPlugPlush / makedist-win.bat
blob4a245b8b058efd9a43ebb71ca155c614bd35e0fd
1 echo off\r
2 \r
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
8 \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
17 echo Building ...\r
19 if exist "%ProgramFiles(x86)%" (goto 64-Bit) else (goto 32-Bit)\r
21 :32-Bit\r
22 echo 32-Bit O/S detected\r
23 call "%ProgramFiles%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"\r
24 goto END\r
26 :64-Bit\r
27 echo 64-Bit Host O/S detected\r
28 call "%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"\r
29 goto END\r
30 :END\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
43 #REM - x86\r
44 #REM - x64\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
53 :32-Bit-is\r
54 "%ProgramFiles%\Inno Setup 5\iscc" /cc ".\installer\IPlugPlush.iss"\r
55 goto END-is\r
57 :64-Bit-is\r
58 "%ProgramFiles(x86)%\Inno Setup 5\iscc" /cc ".\installer\IPlugPlush.iss"\r
59 goto END-is\r
61 :END-is\r
63 REM - ZIP\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
70 type build-win.log\r
72 pause