From d5aa8055e79eb2470cd0ff83b940ee404106577b Mon Sep 17 00:00:00 2001 From: PocketMiner82 Date: Thu, 11 Apr 2024 10:28:13 +0200 Subject: [PATCH] fix: beta releases didn't check for beta updates on start --- pseudocodeIdeUpdater/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pseudocodeIdeUpdater/Program.cs b/pseudocodeIdeUpdater/Program.cs index 6c5f9f8..806aefd 100644 --- a/pseudocodeIdeUpdater/Program.cs +++ b/pseudocodeIdeUpdater/Program.cs @@ -38,7 +38,7 @@ static void Main(string[] args) { string path = args[0]; bool firstRun = bool.Parse(args[1]); - bool beta = bool.Parse(args[2]); + bool betaButton = bool.Parse(args[2]); if (!firstRun) { @@ -57,7 +57,8 @@ static void Main(string[] args) Version assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version; - if (assemblyVersion.Revision > 0 && !beta && !firstRun) + bool beta = false; + if (assemblyVersion.Revision > 0 && !betaButton && !firstRun) { // hack to allow to go back to stable release, as the last version tag (pre release count) will be missing // without this hack, the AutoUpdater would think that the new release is a lower version than this @@ -67,6 +68,7 @@ static void Main(string[] args) { // beta release AutoUpdater.InstalledVersion = new Version($"{assemblyVersion.Major}.{assemblyVersion.Minor}.{assemblyVersion.Build}.{assemblyVersion.Revision}"); + beta = true; } else {