Add support for macOS Tahoe 26

This commit is contained in:
Hoang Hong Quan
2025-06-10 02:47:13 +07:00
parent 241e065b5a
commit f0cceba20f
6 changed files with 30 additions and 23 deletions

View File

@@ -80,7 +80,7 @@ class SMBIOS:
platform = "NUC" if "NUC" in hardware_report.get("Motherboard").get("Name") else hardware_report.get("Motherboard").get("Platform")
codename = hardware_report.get("CPU").get("Codename")
smbios_model = "MacBookPro16,3" if "Laptop" in platform else "iMacPro1,1"
smbios_model = "MacBookPro16,3" if "Laptop" in platform else "iMacPro1,1" if self.utils.parse_darwin_version(macos_version) < self.utils.parse_darwin_version("25.0.0") else "MacPro7,1"
if codename in ("Lynnfield", "Clarkdale") and "Xeon" not in hardware_report.get("CPU").get("Processor Name") and self.utils.parse_darwin_version(macos_version) < self.utils.parse_darwin_version("19.0.0"):
smbios_model = "iMac11,1" if codename in "Lynnfield" else "iMac11,2"