1
0
mirror of synced 2024-11-14 11:07:39 +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 asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}"; var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
bool IsLatest = Releases.Any(x => x.Name.Contains($"v{version}")); var lastestRelease = Releases.FirstOrDefault(x => x.Name.Contains($"v{version}"));
if (IsLatest) if (lastestRelease != null)
{
Runtime.ProgramVersion = lastestRelease.TagName;
Runtime.CompileDate = lastestRelease.Assets[0].UpdatedAt.ToString();
Runtime.CommitInfo = lastestRelease.TargetCommitish;
return; return;
}
foreach (Release latest in Releases) foreach (Release latest in Releases)
{ {

View File

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