Skip to content

Commit

Permalink
hopefully fix arm update loop (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiritreader committed Feb 15, 2024
1 parent f732c67 commit 839a8be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AutoDarkModeSvc/AutoDarkModeSvc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
<UseWindowsForms>true</UseWindowsForms>
<Version>10.4.2.11</Version>
<Version>10.4.2.12</Version>
<AssemblyName>AutoDarkModeSvc</AssemblyName>
<ApplicationIcon>..\adm_tray_new.ico</ApplicationIcon>
<StartupObject>AutoDarkModeSvc.Program</StartupObject>
Expand Down
4 changes: 3 additions & 1 deletion AutoDarkModeSvc/Handlers/UpdateHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ public static ApiResponse CheckNewVersion()
UpstreamResponse = response;
return response;
}
else if (RuntimeInformation.OSArchitecture == Architecture.Arm64 && currentVersion.CompareTo(newVersion) == 0 && UpstreamVersion.PathFileArm != null)
else if (RuntimeInformation.OSArchitecture == Architecture.Arm64
&& RuntimeInformation.ProcessArchitecture != Architecture.Arm64
&& currentVersion.CompareTo(newVersion) == 0 && UpstreamVersion.PathFileArm != null)
{
Logger.Info($"upgrade to arm version available");
response.StatusCode = StatusCode.New;
Expand Down

0 comments on commit 839a8be

Please sign in to comment.