update to display the changelogs for application when an update was found

This commit is contained in:
2023-05-28 19:17:06 +03:00
parent 59da9b295b
commit bcd9245502

View File

@@ -220,6 +220,9 @@ public class Program
if(newVersion != currentVersion) if(newVersion != currentVersion)
{ {
Console.WriteLine("A new updated was found. Check the changelog for more information."); Console.WriteLine("A new updated was found. Check the changelog for more information.");
List<string> changeLog = await ServerCom.ReadTextFromURL(URLs["Changelog"]);
foreach (var item in changeLog)
Utilities.Utilities.WriteColorText(item);
Console.WriteLine("Current version: " + currentVersion); Console.WriteLine("Current version: " + currentVersion);
Console.WriteLine("Latest version: " + newVersion); Console.WriteLine("Latest version: " + newVersion);