Skip to content

Commit

Permalink
fix: beta releases didn't check for beta updates on start
Browse files Browse the repository at this point in the history
  • Loading branch information
PocketMiner82 committed Apr 11, 2024
1 parent fecdfc5 commit d5aa805
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pseudocodeIdeUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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
Expand All @@ -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
{
Expand Down

0 comments on commit d5aa805

Please sign in to comment.