mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 03:27:01 +00:00
39 lines
999 B
C#
39 lines
999 B
C#
using System;
|
|
|
|
namespace CMLeonOS
|
|
{
|
|
public static class Version
|
|
{
|
|
public static string Major = "1";
|
|
public static string Minor = "0";
|
|
public static string Patch = "0";
|
|
public static string VersionType = "Release";
|
|
public static string GitCommit = "unknown";
|
|
|
|
public static string FullVersion
|
|
{
|
|
get { return $"{Major}.{Minor}.{Patch}-{VersionType}"; }
|
|
}
|
|
|
|
public static string ShortVersion
|
|
{
|
|
get { return $"{Major}.{Minor}.{Patch}"; }
|
|
}
|
|
|
|
public static string DisplayVersion
|
|
{
|
|
get { return $"CMLeonOS v{ShortVersion} ({VersionType})"; }
|
|
}
|
|
|
|
public static string DisplayVersionWithGit
|
|
{
|
|
get { return $"CMLeonOS v{ShortVersion} ({VersionType}) - Git: {GitCommit}"; }
|
|
}
|
|
|
|
public static string GetVersion()
|
|
{
|
|
return ShortVersion;
|
|
}
|
|
}
|
|
}
|