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

View File

@@ -1,6 +1,8 @@
# OpenCore Legacy Patcher changelog
## 0.4.8
- Ensure Apple Silicon-specific installers are not listed
- ie. M2 specific build (21F2092)
## 0.4.7
- Fix crashing on defaults parsing

View File

@@ -28,6 +28,14 @@ For this example, we'll assume you'll need an installer. Selecting this option w
Since the patcher officially supports Big Sur and newer for patching, only those entires will be shown. For ourselves, we'll select 12.1 as that's the latest public release at the time of writing. This will download and install the macOS installer to your applications folder.
::: warning
With the release of the M2 MacBooks, Apple made an Apple Silicon only installer labeled "macOS 12.4 (21F2092 - 11.7GB)". Trying to boot this on Intel will not work.
Instead, download "macOS 12.4 (21F79 - 12.1GB)" or newer.
:::
| Downloading the Installer | Requesting to install | Finished Installing |
| :--- | :--- | :--- |
| ![OCLP GUI Installer Download Progress](../images/OCLP-GUI-Installer-Download-Progress.png) | ![OCLP GUI Installer Needs Installing](../images/OCLP-GUI-Installer-Needs-Installing.png) | ![OCLP GUI Installer Download Finished](../images/OCLP-GUI-Installer-Download-Finished.png) |

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: