Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: AndrewCot on February 08, 2022, 01:29:53 am

Title: RFC: Update resources.rc on build so codeblocks.exe version includes SVN#
Post by: AndrewCot on February 08, 2022, 01:29:53 am
Just spotted in the RPT file the codeblocks.exe version as 20.3.0.0 even for the nightly releases as the src\src\resources\resources.rc file has the FileVersion set to 20.03.0.0 ( & ProductVersion 20.03.0.1 & Build "March 2020" btw).
It would be nice to be able to look at the codeblocks.exe version in the RPT file and see what SVN it relates to, even for a official release.

As such if possible the FileVersion &  ProductVersion should be updated to include the SVN # as the last number like MAJOR.MINOR.REVISION.SVN# and also update the Build to the current month and year in a similar way that the src\include\autorevision.h is created/updated on a build.

What do people think? If it is going to fly then I will create a ticket for it as I am working on other stuff at the moment.