mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 14:39:27 +02:00
LazBuild: Increment build number when auto increment is enabled. Issue #27820, patch from Sandro Cumerlato.
git-svn-id: trunk@49097 -
This commit is contained in:
parent
4be547210a
commit
4778f486d4
@ -952,6 +952,19 @@ begin
|
||||
end
|
||||
else
|
||||
Result := StartBuilding;
|
||||
|
||||
// Auto increment build number
|
||||
if Result then
|
||||
begin
|
||||
with Project1.ProjResources.VersionInfo do
|
||||
begin
|
||||
if UseVersionInfo and AutoIncrementBuild then
|
||||
begin
|
||||
BuildNr := BuildNr + 1;
|
||||
Project1.WriteProject(Project1.PublishOptions.WriteFlags,AFileName,EnvironmentOptions.BuildMatrixOptions);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TLazBuildApplication.LoadProject(const AFilename: string): TProject;
|
||||
|
Loading…
Reference in New Issue
Block a user