1
0
mirror of synced 2024-11-27 17:00:50 +01:00

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