Skip to content

Commit

Permalink
Added macOS 10.15 Catalina reporting. (#8)
Browse files Browse the repository at this point in the history
* Added macOS 10.15 Catalina reporting.
  • Loading branch information
kevinmcox authored and tuxudo committed Jun 7, 2019
1 parent d0a56ad commit 5ea0028
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions supported_os_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 5ea0028

Please sign in to comment.