lovr icon indicating copy to clipboard operation
lovr copied to clipboard

Expose Build Info

Open bjornbytes opened this issue 2 years ago • 3 comments

Request from chat

it would be cool if lovr.getVersion() returned the branch and build time those might be useful on the error screen/error printout too

Branch? Commit hash? Date/time? Commit message?!

lovr.getVersion? lovr.getBuildInfo?

bjornbytes avatar Oct 05 '23 20:10 bjornbytes

i like that hashes are short and easy to recognize, but there's a couple downsides

  • you gotta copy and paste them, because they're hard to remember and write
  • they're not sequential, so you gotta look at git/hub to see how old your version is

wasokeli avatar Oct 05 '23 20:10 wasokeli

i think my ideal would be like "0.16.dev.2023-09-25" or shorten it by rolling over months, "0.16.dev.2125"

wasokeli avatar Oct 05 '23 20:10 wasokeli

Running git describe in lovr's repo prints v0.16.0-541-gc0fb: the last tagged version, the number of changes since then, plus the hash. (Jotting this down here). Also, if you're on exactly the tagged version, it will just print v0.16.0 which is kinda cool.

bjornbytes avatar Oct 06 '23 05:10 bjornbytes

lovr.getVersion and lovr --version now include the git hash as a 5th return, when built by GH actions.

bjornbytes avatar Aug 06 '24 21:08 bjornbytes