mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Update with the latest info.
This commit is contained in:
parent
97917ac1d8
commit
b15536da82
2 changed files with 7 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
EXPERIMENTAL_LATEST
|
||||
3/23/2019 1:40:02 PM +00:00
|
||||
master
|
Loading…
Reference in a new issue