输出git哈希值1

This commit is contained in:
2026-02-09 02:04:58 +08:00
parent 9ac476e8ea
commit a01dd4e10c
6 changed files with 78 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ namespace CMLeonOS
public static string Minor = "0";
public static string Patch = "0";
public static string VersionType = "PreRelease";
public static string GitCommit = "unknown";
public static string FullVersion
{
@@ -23,5 +24,10 @@ namespace CMLeonOS
{
get { return $"CMLeonOS v{ShortVersion} ({VersionType})"; }
}
public static string DisplayVersionWithGit
{
get { return $"CMLeonOS v{ShortVersion} ({VersionType}) - Git: {GitCommit}"; }
}
}
}