Add safe guards for macOS 14

This commit is contained in:
Mykola Grymalyuk
2023-06-01 18:39:22 -06:00
parent 7239730c44
commit e6251da97a
4 changed files with 16 additions and 1 deletions
+5 -1
View File
@@ -479,7 +479,6 @@ class RemoteInstallerCatalog:
os_builds.append(newest_apps[ia]["Build"])
# Final passthrough
# Remove Betas if there's a non-beta version available
for ia in list(newest_apps):
if newest_apps[ia]["Variant"] in ["CustomerSeed", "DeveloperSeed", "PublicSeed"]:
@@ -488,6 +487,11 @@ class RemoteInstallerCatalog:
newest_apps.pop(ia)
break
# Remove unsupported versions (namely 14)
for ia in list(newest_apps):
if newest_apps[ia]["Version"].split(".")[0] not in supported_versions:
newest_apps.pop(ia)
return newest_apps