|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|