DarklightGames / DarkestHour

Darkest Hour: Europe '44-'45
https://store.steampowered.com/app/1280/Darkest_Hour_Europe_4445/
69 stars 21 forks source link

Add build step that writes the git build information into the game version #1735

Closed cmbasnett closed 1 month ago

cmbasnett commented 1 month ago

Ideally I want to be able to have the game version be something like:

v12.0.0-<branch>@<commit>

This will make it easier to track the provenance of bug screenshots etc.

This script should not preclude the build from running if it fails (i.e., if git info lookup fails).

This can be done as a step that creates a DHBuildInformation.uc file in DH_Engine on each build. Because of how the make script works, it won't rebuild the package if nothing changes, so it shouldn't add any undue overhead.