MainMenu: Add build tag to neoLegacy name on main menu

This commit is contained in:
Anaël
2026-10-04 20:59:17 +02:00
parent 919d582a18
commit 29ea94206c
2 changed files with 84 additions and 68 deletions
+13
View File
@@ -21,6 +21,18 @@ if(NOT rc EQUAL 0)
set(GIT_SHA "unknown")
endif()
# Get the latest tag, excluding dedicated server ones
execute_process(
COMMAND git describe --tags --match "v[0-9]*" --exclude "*-Dedicated-Server"
OUTPUT_VARIABLE GIT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
RESULT_VARIABLE rc
)
if(NOT rc EQUAL 0)
set(GIT_TAG "unknown")
endif()
# Get branch name
execute_process(
COMMAND git symbolic-ref --short HEAD
@@ -70,6 +82,7 @@ set(_content
"#define VER_FILEVERSION_STR_W VER_PRODUCTVERSION_STR_W\n"
"#define VER_BRANCHVERSION_STR_W L\"${GIT_REF}\"\n"
"#define VER_NETWORK VER_PRODUCTBUILD\n"
"#define VER_LAST_TAG L\"${GIT_TAG}${SUFFIX}\"\n"
)
set(_tmp "${OUTPUT_FILE}.tmp")