aboutsummaryrefslogtreecommitdiff
path: root/game/src/Utility
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-03-26 15:22:03 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-03-29 02:53:28 +0200
commit793a8939c4f721844c276a3d49293c23c902c8d3 (patch)
tree9d333d26e18e0ad29979170edc031f60866e40cd /game/src/Utility
parentcb5858b80c6dc9918b8366a433ca78a5d4adebed (diff)
Add automated git release info retrieval on export
Makes debug easier to see and handle Add commit hash label to MainMenu Add click-copyable tag, commit hash, and checksum to main menu Rename VersionChecksumBox to ReleaseInfoBox Move ReleaseInfoBox to separate scene and script Add GIT_INFO.gd for generic project running Add openvic2-plugin addon for handling export plugin Replaces GIT_INFO.gd on export Setup build workflow to retrieve commit hash, tag, and release
Diffstat (limited to 'game/src/Utility')
-rw-r--r--game/src/Utility/GIT_INFO.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/game/src/Utility/GIT_INFO.gd b/game/src/Utility/GIT_INFO.gd
new file mode 100644
index 0000000..dc02349
--- /dev/null
+++ b/game/src/Utility/GIT_INFO.gd
@@ -0,0 +1,9 @@
+### IMPORTANT: IF LOCATION IS CHANGED, PLEASE UPDATE IN addon/openvic2-plugin/ReleaseExportEditorPlugin
+class_name _GIT_INFO_
+extends RefCounted
+
+
+const commit_hash : StringName = &"0000000000000000000000000000000000000000"
+const short_hash : StringName = &"0000000"
+const tag : StringName = &"<tag missing>"
+const release_name : StringName = &"<release name missing>"