source: tags/1.3.1/Install/win/build.bat

Last change on this file was 218, checked in by chronos, 4 years ago
  • Modified: Create separate 32-bit and 64-bit Windows installers to allow to install 32-bit version with additional AIs included.
  • Modified: Use InnoSetup 6 with modern style.
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"
38%INNO_SETUP% "C-evo 32-bit.iss"
39%INNO_SETUP% "C-evo 64-bit.iss"
Note: See TracBrowser for help on using the repository browser.