mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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.');
|
||||
|
||||
@@ -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>
|
||||
|
||||
Binary file not shown.
1
packages/delphi11/icon.rc
Normal file
1
packages/delphi11/icon.rc
Normal file
@@ -0,0 +1 @@
|
||||
MAINICON ICON "../../res/mainicon.ico"
|
||||
20
packages/delphi11/version.rc
Normal file
20
packages/delphi11/version.rc
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user