mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
构建版本1
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
using System;
|
||||
using IL2CPU.API.Attribs;
|
||||
|
||||
namespace CMLeonOS.Commands
|
||||
{
|
||||
public static class VersionCommand
|
||||
{
|
||||
[ManifestResourceStream(ResourceName = "CMLeonOS.BuildTime.txt")]
|
||||
private static byte[] buildTimeResource;
|
||||
|
||||
public static void ProcessVersion()
|
||||
{
|
||||
string buildTime = global::System.Text.Encoding.UTF8.GetString(buildTimeResource);
|
||||
Console.WriteLine(Version.DisplayVersionWithGit);
|
||||
Console.WriteLine($"Major: {Version.Major}");
|
||||
Console.WriteLine($"Minor: {Version.Minor}");
|
||||
@@ -13,6 +18,7 @@ namespace CMLeonOS.Commands
|
||||
Console.WriteLine($"Type: {Version.VersionType}");
|
||||
Console.WriteLine($"Full Version: {Version.FullVersion}");
|
||||
Console.WriteLine($"Git Commit: {Version.GitCommit}");
|
||||
Console.WriteLine($"Build Time: {buildTime}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user