From 5ea0028cb89018b733a5693ea6a9a5eabe5d6f74 Mon Sep 17 00:00:00 2001 From: "Kevin M. Cox" Date: Fri, 7 Jun 2019 11:43:47 -0500 Subject: [PATCH] Added macOS 10.15 Catalina reporting. (#8) * Added macOS 10.15 Catalina reporting. --- supported_os_model.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/supported_os_model.php b/supported_os_model.php index ea807c0..62c0fa2 100644 --- a/supported_os_model.php +++ b/supported_os_model.php @@ -37,7 +37,7 @@ public function process($data) $parser->parse($data); $plist = $parser->toArray(); - $most_current_os = "10.14.5"; // Update this as Apple releases new point updates + $most_current_os = "10.15.0"; // Update this as Apple releases new point updates. if (strpos($plist['machine_id'], 'iMacPro') !== false) { $model_num = preg_replace("/[^0-9]/", "", $plist['machine_id']); @@ -72,9 +72,11 @@ public function process($data) } } else if (strpos($plist['machine_id'], 'MacPro') !== false) { $model_num = preg_replace("/[^0-9]/", "", $plist['machine_id']); - if ($model_num >= 51) { + if ($model_num >= 61) { $plist['highest_supported'] = $most_current_os; - } else if ($model_num >= 31) { + } else if ($model_num >= 51) { + $plist['highest_supported'] = "10.14.6"; + } else if ($model_num >= 41) { $plist['highest_supported'] = "10.11.6"; } else { $plist['highest_supported'] = "10.7.5";