Revised debug version overlay to only try populating advanced info when running from editor
All checks were successful
GFOLF - itch.io publish action / build (linux64, x86_64) (push) Successful in 56s
GFOLF - itch.io publish action / build (osx, app) (push) Successful in 1m0s
GFOLF - itch.io publish action / build (win64, exe) (push) Successful in 1m7s

This commit is contained in:
Rob Kelly 2025-01-12 22:49:56 -07:00
parent 4854fd0aab
commit dd15c88585

View File

@ -9,6 +9,8 @@ func _ready() -> void:
# Fall back on baked version info
text = Game.settings.version
# Try to expand on version number if running from the editor
if OS.has_feature("editor"):
var output: Array[String] = []
var status := OS.execute("git", ["describe", "--always", "HEAD"], output)
if status == 0: