Update with the latest info.
This commit is contained in:
parent
97917ac1d8
commit
b15536da82
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
EXPERIMENTAL_LATEST
|
|
||||||
3/23/2019 1:40:02 PM +00:00
|
|
||||||
master
|
|
Loading…
Reference in New Issue
Block a user