From 024829315332d300ac80fb5e7d5840c1bb88bac0 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 31 Oct 2023 15:30:58 +0100 Subject: [PATCH] Add Sonoma to long OS version --- src/unix/apple/system.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/apple/system.rs b/src/unix/apple/system.rs index 21850627f..e27628a78 100644 --- a/src/unix/apple/system.rs +++ b/src/unix/apple/system.rs @@ -341,6 +341,7 @@ impl SystemInner { pub(crate) fn long_os_version(&self) -> Option { #[cfg(target_os = "macos")] let friendly_name = match self.os_version().unwrap_or_default() { + f_n if f_n.starts_with("14.0") => "Sonoma", f_n if f_n.starts_with("10.16") | f_n.starts_with("11.0") | f_n.starts_with("11.1")