Recent

Author Topic: lpi Project - Version Info -> executable name  (Read 532 times)

Чебурашка

  • Hero Member
  • *****
  • Posts: 573
  • СЛАВА УКРАЇНІ! / Slava Ukraïni!
lpi Project - Version Info -> executable name
« on: July 18, 2022, 03:27:22 pm »
Hello,
is there a way to use the lazarus project "Version Info" (Menu/Project/Project Options/Version Info) in order to create linux executable that is formed with exe name + version info?

Example:

Project name: "SoftwareProject"
Target file name: "bin/SoftwareProject{ some placeholder ???? }"
Vesion Info: "M(ajor).m(inor).r(ev).b(uild)"


When doing "Build" I would get a linux executable like

bin/SoftwareProject-M.m.r.b

I see that the numbers are stored in the lpi,

- MajorVersionNr
- MinorVersionNr
- RevisionNr
- BuildNr


but if I try to use them, example

bin/SoftwareProject-$(MajorVersionNr).$(MinorVersionNr).$(RevisionNr).$(BuildNr)

But I get a ugly "bin/SoftwareProject-..."

Thank you

FPC 3.2.0/Lazarus 2.0.10+dfsg-4+b2 on Debian 11.5
FPC 3.2.2/Lazarus 2.2.0 on Windows 10 Pro 21H2

 

TinyPortal © 2005-2018