Skip revision at the end on version checks
This commit is contained in:
parent
b15536da82
commit
b7761f6455
@ -614,7 +614,7 @@ namespace Toolbox
|
||||
{
|
||||
string commit = $"Commit: {Runtime.CommitInfo}";
|
||||
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
|
||||
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
|
||||
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.MinorRevision}";
|
||||
|
||||
if (DisplayVersion)
|
||||
Text = $"{Application.ProductName} | Version: {Runtime.ProgramVersion} | {commit} | Compile Date: {Runtime.CompileDate} Assembly {version}";
|
||||
|
@ -6,7 +6,7 @@ using Octokit;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Diagnostics;
|
||||
using System.Security.Cryptography;
|
||||
using System.Linq;
|
||||
using Toolbox.Library;
|
||||
using System.Reflection;
|
||||
|
||||
@ -32,7 +32,7 @@ namespace Toolbox
|
||||
GetCommits(client).Wait();
|
||||
|
||||
var asssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
|
||||
var version = $"{asssemblyVersion.Major}.{asssemblyVersion.MajorRevision}.{asssemblyVersion.Minor}";
|
||||
var version = string.Concat(asssemblyVersion.ToString().Reverse().Skip(2).Reverse());
|
||||
|
||||
var lastestRelease = Releases.FirstOrDefault(x => x.Name.Contains($"v{version}"));
|
||||
if (lastestRelease != null)
|
||||
|
Loading…
Reference in New Issue
Block a user