Skip to content

Commit

Permalink
Add Sonoma to long OS version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas committed Oct 31, 2023
1 parent 89f23d7 commit 0248293
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/apple/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ impl SystemInner {
pub(crate) fn long_os_version(&self) -> Option<String> {
#[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")
Expand Down

0 comments on commit 0248293

Please sign in to comment.