Update with the latest info.

This commit is contained in:
KillzXGaming 2020-08-31 19:55:13 -04:00
parent 97917ac1d8
commit b15536da82
2 changed files with 7 additions and 5 deletions

View file

@ -34,9 +34,14 @@ namespace Toolbox
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
bool IsLatest = Releases.Any(x => x.Name.Contains($"v{version}"));
if (IsLatest)
var lastestRelease = Releases.FirstOrDefault(x => x.Name.Contains($"v{version}"));
if (lastestRelease != null)
{
Runtime.ProgramVersion = lastestRelease.TagName;
Runtime.CompileDate = lastestRelease.Assets[0].UpdatedAt.ToString();
Runtime.CommitInfo = lastestRelease.TargetCommitish;
return;
}
foreach (Release latest in Releases)
{

View file

@ -1,3 +0,0 @@
EXPERIMENTAL_LATEST
3/23/2019 1:40:02 PM +00:00
master