source: trunk/Install/win/build.bat

Last change on this file was 19, checked in by chronos, 6 years ago
  • Added: Remember main form and preferences form dimensions.
  • Added: Windows installer script.
  • Added: 32-bit mysql library binary.
  • Removed: Dependency on synapse package which can't be compiled under 64-bit CPU.
File size: 736 bytes
Line 
1@echo off
2
3if not defined LAZDIR (
4 set LAZDIR=C:\lazarus
5)
6SET PROJECTNAME=MyData
7
8SET MAIN_EXE=..\..\%PROJECTNAME%.exe
9SET WIN32_EXE=..\..\lib\i386-win32-Release\%PROJECTNAME%.exe
10SET WIN64_EXE=..\..\lib\x86_64-win64-Release\%PROJECTNAME%.exe
11IF EXIST %MAIN_EXE% del %MAIN_EXE%
12IF EXIST %WIN32_EXE% del %WIN32_EXE%
13IF EXIST %WIN64_EXE% del %WIN64_EXE%
14
15%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=i386 --operating-system=Win32 ..\..\%PROJECTNAME%.lpi
16copy %MAIN_EXE% %WIN32_EXE%
17%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=x86_64 --operating-system=Win64 ..\..\%PROJECTNAME%.lpi
18copy %MAIN_EXE% %WIN64_EXE%
19
20"c:\Program Files (x86)\Inno Setup 5\ISCC.exe" "%PROJECTNAME%.iss"
Note: See TracBrowser for help on using the repository browser.