source: branches/zoom/Install/win/build.bat

Last change on this file was 679, checked in by chronos, 6 weeks ago
  • Modified: Generate only single Windows installer with support for both 32-bit and 64-bit Windows.
  • Modified: If C-evo installed on Windows as 64-bit, then optionally install also 32-bit C-evo with 32-bit AIs.
  • Modified: Load additional AIs on Windows only if executed with 32-bit process.
  • Added: Package Music files with option to not install them.
File size: 1.4 KB
Line 
1@echo off
2
3if not defined LAZDIR (
4 set LAZDIR=C:\lazarus
5)
6
7set INNO_SETUP="c:\Program Files (x86)\Inno Setup 6\ISCC.exe"
8
9rem Build AI
10SET PROJECTNAME=StdAI
11SET MAIN_DLL=..\..\AI\StdAI\StdAI.dll
12SET WIN32_DLL=..\..\AI\StdAI\lib\i386-win32-Release\StdAI.dll
13SET WIN64_DLL=..\..\AI\StdAI\lib\x86_64-win64-Release\StdAI.dll
14IF EXIST %MAIN_DLL% del %MAIN_DLL%
15IF EXIST %WIN32_DLL% del %WIN32_DLL%
16IF EXIST %WIN64_DLL% del %WIN64_DLL%
17
18%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=i386 --operating-system=Win32 ..\..\AI\StdAI\%PROJECTNAME%.lpi
19copy %MAIN_DLL% %WIN32_DLL%
20%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=x86_64 --operating-system=Win64 ..\..\AI\StdAI\%PROJECTNAME%.lpi
21copy %MAIN_DLL% %WIN64_DLL%
22
23rem Build game
24SET PROJECTNAME=Integrated
25SET MAIN_EXE=..\..\c-evo.exe
26SET WIN32_EXE=..\..\lib\i386-win32-Release\c-evo.exe
27SET WIN64_EXE=..\..\lib\x86_64-win64-Release\c-evo.exe
28IF EXIST %MAIN_EXE% del %MAIN_EXE%
29IF EXIST %WIN32_EXE% del %WIN32_EXE%
30IF EXIST %WIN64_EXE% del %WIN64_EXE%
31
32%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=i386 --operating-system=Win32 ..\..\%PROJECTNAME%.lpi
33copy %MAIN_EXE% %WIN32_EXE%
34%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=x86_64 --operating-system=Win64 ..\..\%PROJECTNAME%.lpi
35copy %MAIN_EXE% %WIN64_EXE%
36
37%INNO_SETUP% "C-evo.iss"
Note: See TracBrowser for help on using the repository browser.