mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
This avoids collisions in the user report, fixes #7174. Update the user report version to account for the new build version format, fixes #7173. The build version displayed in the GUI is kept at 5 characters for main menu clutter concerns.
6 lines
328 B
Batchfile
6 lines
328 B
Batchfile
@ECHO OFF
|
|
REM Generate a Unicode string constant from git's output, including branch
|
|
REM name and an abbreviated commit hash, and write it to build_version.txt
|
|
FOR /F %%b IN ('git branch --show-current') DO SET branch=%%b
|
|
FOR /F %%h IN ('git rev-parse --short HEAD') DO SET hash=%%h
|
|
ECHO L"%branch%, %hash%" > build_version.txt
|