installer.py: Ensure AS-specific installers are not listed

This commit is contained in:
Mykola Grymalyuk
2022-06-17 11:13:34 -06:00
parent 71734ce904
commit 1e4ad7254f
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -135,6 +135,9 @@ def list_downloadable_macOS_installers(download_path, catalog):
build_plist = plistlib.loads(requests.get(bm_package["URL"]).content)
except plistlib.InvalidFileException:
continue
# Ensure Apple Silicon specific Installers are not listed
if "VMM-x86_64" not in build_plist["MobileAssetProperties"]["SupportedDeviceModels"]:
continue
version = build_plist["MobileAssetProperties"]["OSVersion"]
build = build_plist["MobileAssetProperties"]["Build"]
try: