Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dissectum committed Sep 17, 2023
1 parent d396184 commit 5d56468
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/MBA.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,22 @@ static int Main(string[] args)

Core.Main.Current.Start();

if (VersionManager.Released)
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("New version released, available for download at https://github.com/MaaAssistantArknights/MBA/releases/latest.");
Console.ForegroundColor = ConsoleColor.White;
}

TipNewVersion();
Console.WriteLine("按任意键关闭此窗口. . .");
Console.ReadKey();
return 0;
}

private static void TipNewVersion()
{
if (!VersionManager.Released)
return;

Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("New version released, available for download at https://github.com/MaaAssistantArknights/MBA/releases/latest.");
Console.ForegroundColor = ConsoleColor.White;
}

static string Greeting =>
$@"
MBA.Cli.exe [arg] ...
Expand Down

0 comments on commit 5d56468

Please sign in to comment.