Browse Source

Add macos to UpdatePlatforms

pull/438/head
ionite34 11 months ago
parent
commit
1d486ff294
No known key found for this signature in database
GPG Key ID: B3404C5F3827849B
  1. 8
      StabilityMatrix.Core/Models/Update/UpdatePlatforms.cs

8
StabilityMatrix.Core/Models/Update/UpdatePlatforms.cs

@ -11,6 +11,9 @@ public record UpdatePlatforms
[JsonPropertyName("linux-x64")] [JsonPropertyName("linux-x64")]
public UpdateInfo? LinuxX64 { get; init; } public UpdateInfo? LinuxX64 { get; init; }
[JsonPropertyName("macos-arm64")]
public UpdateInfo? MacOsArm64 { get; init; }
public UpdateInfo? GetInfoForCurrentPlatform() public UpdateInfo? GetInfoForCurrentPlatform()
{ {
if (Compat.IsWindows) if (Compat.IsWindows)
@ -23,6 +26,11 @@ public record UpdatePlatforms
return LinuxX64; return LinuxX64;
} }
if (Compat.IsMacOS && Compat.IsArm)
{
return MacOsArm64;
}
return null; return null;
} }
} }

Loading…
Cancel
Save