Skip to content

Commit

Permalink
add macOS version check
Browse files Browse the repository at this point in the history
  • Loading branch information
13xforever authored and clienthax committed May 24, 2024
1 parent 6b15888 commit b5e41cb
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,13 @@ private static async Task BuildNotesSectionAsync(DiscordEmbedBuilder builder, Lo
&& Version.TryParse(items["os_version"], out var winVersion)
&& (winVersion is { Major: < 10 } or { Build: < 19045 or (> 20000 and < 22621) }))
notes.Add("⚠️ Please [upgrade your Windows](https://www.microsoft.com/en-us/software-download/windows11) to currently supported version");
else if (items["os_type"] is "MacOS"
&& Version.TryParse(items["os_version"], out var macVersion)
&& macVersion is {Major: 14, Minor: >=0 and <=2})
notes.Add("❌️ Please update your OS to version 14.3 or newer");
if (items["os_type"] is "MacOS" && Version.TryParse(items["os_version"], out var macVersion))
{
if (macVersion is {Major: < 12})
notes.Add("⚠️ Please [upgrade your macOS](https://support.apple.com/en-us/109033#latest) to currently supported version");
else if (macVersion is { Major: 14, Minor: >= 0 and <= 2 })
notes.Add("❌️ Please update your OS to version 14.3 or newer");
}

var gpuInfo = items["gpu_info"] ?? items["discrete_gpu_info"];
if (supportedGpu && !string.IsNullOrEmpty(gpuInfo))
Expand Down

0 comments on commit b5e41cb

Please sign in to comment.