Skip to content

Commit

Permalink
-changed compare versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Greedeks committed Nov 19, 2024
1 parent 81c1ffc commit 1009423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .Source/GTweak/Utilities/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ internal static void SelfRemoval()

Process.Start(new ProcessStartInfo()
{
Arguments = $"/c taskkill /f /im {currentName} & choice /c y /n /d y /t 3 & del {new FileInfo(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath).Name } & " +
Arguments = $"/c taskkill /f /im {currentName} & choice /c y /n /d y /t 3 & del {new FileInfo(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath).Name} & " +
@$"rd /s /q {UsePath.FileLocation} & rd /s /q {Environment.SystemDirectory}\config\systemprofile\AppData\Local\GTweak",
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true,
Expand Down
5 changes: 2 additions & 3 deletions .Source/GTweak/Utilities/Tweaks/SystemData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Management;
using System.Net;
using System.Net.Http;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
Expand Down Expand Up @@ -342,7 +340,8 @@ internal void CheckingUpdate()
string DataAsJson = sreader.ReadToEnd();
GitVersionUtility gitVersionUtility = JsonConvert.DeserializeObject<GitVersionUtility>(DataAsJson);

if (!string.IsNullOrEmpty(gitVersionUtility.СurrentVersion) && (Assembly.GetEntryAssembly() ?? throw new InvalidOperationException()).GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion.Split(' ').Last().Trim() != gitVersionUtility.СurrentVersion)

if (!string.IsNullOrEmpty(gitVersionUtility.СurrentVersion) && gitVersionUtility.СurrentVersion.CompareTo(Settings.currentRelease) > 0)
{
IsNeedUpdate = true;
DownloadVersion = gitVersionUtility.СurrentVersion;
Expand Down

0 comments on commit 1009423

Please sign in to comment.