pappde / bmai

AI to play Button Men, originally developed to interface with the (now deprecated) unofficial online Button Men website.
MIT License
2 stars 1 forks source link

print version info from git describe #30

Closed danlangford closed 1 year ago

danlangford commented 1 year ago

this small change adds a new line to the BMAI banner that includes some version information.

BMAI: the Button Men AI Copyright (c) 2001-2023, Denis Papp. For information, contact Denis Papp, denis@accessdenied.net Version: v3.0-30-gb41f92b

v3.0 = the most recent git tag on the current branch 30 = how many commits have been made AFTER that most recent tag g = git scms b41f92b = commit hash that build was done from

this will allow somebody to know if they are running the latest version and help them id exactly what state the code was in when compiled

danlangford commented 1 year ago

the git hash is a little wonky on PRs. PRs make an invisible branch behind the scenes with its own hash thats not visible in this ui. I think. in hoping if this gets merged into main the builds off main will have the hash that we know and love from the GitHub ui. this is a little trial and error that I cannot test without getting on a main branch. I could have tested it out on my fork now that I think about it… if you want me to I can.

if we merge into main and its garbage ill work out another solution

pappde commented 1 year ago

Neat idea.