Fix exe versioning in auto build mode. Replaces binary .res file by .rc files and compiles them at build time.

This commit is contained in:
Ansgar Becker
2009-01-13 00:38:52 +00:00
parent cd9dc5cd48
commit ef2610e600
6 changed files with 31 additions and 1 deletions

View File

@@ -225,6 +225,8 @@ if not %err% == 0 goto end
rem Build main executable
echo Compiling main project.
cd /d "%base_dir%\packages\%package_dir%\"
brcc32 version.rc
brcc32 icon.rc
"%compiler%" %params% -e"%base_dir%\out" heidisql.dpr
if not %errorlevel% == 0 goto end

View File

@@ -43,7 +43,8 @@ uses
uVistaFuncs in '..\..\source\uVistaFuncs.pas',
dataviewsave in '..\..\source\dataviewsave.pas' {FrmDataViewSave};
{$R *.RES}
{$R icon.RES}
{$R version.RES}
begin
debug('perf: All modules loaded.');

View File

@@ -58,6 +58,12 @@
<DelphiCompile Include="heidisql.dpr">
<MainSource>MainSource</MainSource>
</DelphiCompile>
<RcCompile Include="icon.rc">
<Form>icon.res</Form>
</RcCompile>
<RcCompile Include="version.rc">
<Form>version.res</Form>
</RcCompile>
<DCCReference Include="..\..\source\about.pas">
<Form>AboutBox</Form>
</DCCReference>

View File

Binary file not shown.

View File

@@ -0,0 +1 @@
MAINICON ICON "../../res/mainicon.ico"

View File

@@ -0,0 +1,20 @@
1 VERSIONINFO
FILEVERSION 0,0,0,0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "FileDescription", "A lightweight, fast and flexible interface to MySQL\000"
VALUE "ProductName", "HeidiSQL\000"
VALUE "LegalCopyright", "See GLP license\000"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409 0x04E4
END
END