UPD: Beta version number format

This commit is contained in:
Alexander Koblov 2023-07-31 20:00:42 +03:00
commit 185c437877
2 changed files with 8 additions and 5 deletions

View file

@ -29,7 +29,7 @@
<UseVersionInfo Value="True"/>
<MajorVersionNr Value="1"/>
<MinorVersionNr Value="2"/>
<Attributes pvaPreRelease="True"/>
<Attributes pvaPreRelease="True" pvaPrivateBuild="True"/>
<StringTable FileDescription="Double Commander" InternalName="DOUBLECMD" LegalCopyright="Copyright (C) 2006-2023 Alexander Koblov" ProductName="Double Commander"/>
</VersionInfo>
<BuildModes Count="5">

View file

@ -3,7 +3,7 @@
-------------------------------------------------------------------------
Version information about DC, building tools and running environment.
Copyright (C) 2006-2021 Alexander Koblov (alexx2000@mail.ru)
Copyright (C) 2006-2023 Alexander Koblov (alexx2000@mail.ru)
Copyright (C) 2010 Przemyslaw Nagay (cobines@gmail.com)
This program is free software; you can redistribute it and/or modify
@ -322,9 +322,12 @@ begin
FixedInfo.FileVersion[1],
FixedInfo.FileVersion[2]]);
if (FixedInfo.FileFlags and VS_FF_PRERELEASE <> 0) then
DCVersion+= ' alpha'
else begin
DCVersion+= ' beta';
begin
if (FixedInfo.FileFlags and VS_FF_PRIVATEBUILD <> 0) then
DCVersion+= ' alpha'
else begin
DCVersion+= ' beta ' + IntToStr(FixedInfo.FileVersion[3]);
end;
end;
Free;
end;