Skip to content

Commit ac654ff

Browse files
committed
Host (macOS): update the latest models
1 parent df2fdf0 commit ac654ff

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# 2.2.3
22

3+
Features:
4+
* Update the latest mac models (Host, macOS)
5+
36
Bugfixes:
47
* Fix local ips detection on Android. Regression from `2.0.0` (LocalIP, Android)
58
* Fix terminal detection on NixOS (Terminal)

src/detection/host/host_apple.c

+9
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ static const char* getProductName(const FFstrbuf* hwModel)
108108
else if(ffStrbufStartsWithS(hwModel, "Mac"))
109109
{
110110
const char* version = hwModel->chars + strlen("Mac");
111+
if(ffStrEquals(version, "15,3")) return "MacBook Pro (14-inch, Nov 2023, Two Thunderbolt / USB 4 ports)";
112+
if(ffStrEquals(version, "15,4")) return "iMac (24-inch, 2023, Two Thunderbolt / USB 4 ports)";
113+
if(ffStrEquals(version, "15,5")) return "iMac (24-inch, 2023, Two Thunderbolt / USB 4 ports, Two USB 3 ports)";
114+
if(ffStrEquals(version, "15,6") ||
115+
ffStrEquals(version, "15,8") ||
116+
ffStrEquals(version, "15,10")) return "MacBook Pro (14-inch, Nov 2023, Three Thunderbolt 4 ports)";
117+
if(ffStrEquals(version, "15,7") ||
118+
ffStrEquals(version, "15,9") ||
119+
ffStrEquals(version, "15,11")) return "MacBook Pro (16-inch, Nov 2023, Three Thunderbolt 4 ports)";
111120
if(ffStrEquals(version, "14,15")) return "MacBook Air (15-inch, M2, 2023)";
112121
if(ffStrEquals(version, "14,14")) return "Mac Studio (M2 Ultra, 2023, Two Thunderbolt 4 front ports)";
113122
if(ffStrEquals(version, "14,13")) return "Mac Studio (M2 Max, 2023, Two USB-C front ports)";

0 commit comments

Comments
 (0)