From a8d8621c315fda32a9794c7fa92dbcaafd4228aa Mon Sep 17 00:00:00 2001 From: neon ball <35791009+ParaDoX1994@users.noreply.github.com> Date: Sat, 4 Jun 2022 21:14:25 +0300 Subject: [PATCH 1/3] Add files via upload --- docs/POST-INSTALL.md | 8 -------- docs/TROUBLESHOOTING.md | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/POST-INSTALL.md b/docs/POST-INSTALL.md index 4699305d5..f38125d68 100644 --- a/docs/POST-INSTALL.md +++ b/docs/POST-INSTALL.md @@ -53,14 +53,6 @@ Post Install Volume Patches, sometimes also called root patches, are patches tha OCLP v0.4.4 and higher include an autopatcher, which will automatically root patch your system but **only if the USB install media was created within OCLP.** -::: details Note for Mac Pros when swapping a GPU from non-metal to Metal - -If you finished installing Monterey with the original card installed (to see bootpicker for example) and swapped your GPU to a Metal supported one, you may notice that you're missing acceleration. To fix this, open OCLP and revert root patches to get your Metal-supported GPU work again. - -Alternatively, you can remove "AutoPkg-Assets.pkg" from /Library/Packages on the USB drive before proceeding with the installation. To see the folder, enable hidden files with `Command` + `Shift` + `.` -::: - - Users with OCLP v0.4.4 or higher will also be prompted to install these patches after macOS updates or whenever patches are not detected on the system. We recommend rebuilding OpenCore with the latest version of OCLP to take advantage of these new features. diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md index ec43fea92..5ed52301e 100644 --- a/docs/TROUBLESHOOTING.md +++ b/docs/TROUBLESHOOTING.md @@ -17,6 +17,7 @@ Here are some common errors users may experience while using this patcher: * [Volume Hash Mismatch Error in macOS Monterey](#volume-hash-mismatch-error-in-macos-monterey) * [Cannot Disable SIP in recoveryOS](#cannot-disable-sip-in-recoveryos) * [Stuck on "Less than a minute remaining..."](#stuck-on-less-than-a-minute-remaining) +* [No acceleration after a Metal GPU swap on Mac Pro](#no-acceleration-after-a-metal-gpu-swap-on-mac-pro) ## Stuck on `This version of Mac OS X is not supported on this platform` @@ -142,3 +143,12 @@ Because of this, we recommend placing a USB 2.0/3.0 hub between your devices and A common area for systems to get "stuck", namely for units that are missing the `AES` CPU instruction/older mobile hardware. During this stange a lot of heavy cryptography is performed, which can make systems appear to be stuck when in reality they are working quite hard to finish up the installation. Because this step can take a few hours or more depending on drive speeds, be patient at this stage and do not manually reboot your machine as this will break the installation and require you to reinstall. If you think your system has stalled, press the Caps Lock key. If the light turns on, your system is busy. + +## No acceleration after a Metal GPU swap on Mac Pro + +If you finished installing Monterey with the original card installed (to see bootpicker for example) and swapped your GPU to a Metal supported one, you may notice that you're missing acceleration. To fix this, open OCLP and revert root patches to get your Metal-supported GPU work again. + +Alternatively, you can remove "AutoPkg-Assets.pkg" from /Library/Packages on the USB drive before proceeding with the installation. To see the folder, enable hidden files with `Command` + `Shift` + `.` + +The reason for this is that the autopatcher will assume you will be using the original card and therefore does non-metal patching, which includes removing some drivers for other cards. This causes Metal cards to not accelerate when swapped. + From f9c14459bed5776c4696a5e810953305a1af4bba Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 14 Jun 2022 09:40:36 -0600 Subject: [PATCH 2/3] Switch to bug fix build 0.5.0 will be held off for Ventura support --- CHANGELOG.md | 3 ++- resources/constants.py | 2 +- resources/global_settings.py | 10 ++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e5d69870..7ff4f2d99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # OpenCore Legacy Patcher changelog -## 0.5.0 +## 0.4.7 +- Fix crashing on defaults parsing ## 0.4.6 - Fix Bluetooth support in 12.4 Release diff --git a/resources/constants.py b/resources/constants.py index bf2d7f136..69c9d64b5 100644 --- a/resources/constants.py +++ b/resources/constants.py @@ -12,7 +12,7 @@ from data import os_data class Constants: def __init__(self): # Patcher Versioning - self.patcher_version = "0.5.0" # OpenCore-Legacy-Patcher + self.patcher_version = "0.4.7" # OpenCore-Legacy-Patcher self.patcher_support_pkg_version = "0.5.1" # PatcherSupportPkg self.url_patcher_support_pkg = "https://github.com/dortania/PatcherSupportPkg/releases/download/" self.nightly_url_patcher_support_pkg = "https://nightly.link/dortania/PatcherSupportPkg/workflows/build/master/" diff --git a/resources/global_settings.py b/resources/global_settings.py index 4679293b8..aca867eb4 100644 --- a/resources/global_settings.py +++ b/resources/global_settings.py @@ -18,7 +18,10 @@ class global_settings: def generate_settings_file(self): if Path(self.global_settings_plist).exists(): return - plistlib.dump({"Developed by Dortania": True,}, Path(self.global_settings_plist).open("wb")) + try: + plistlib.dump({"Developed by Dortania": True,}, Path(self.global_settings_plist).open("wb")) + except PermissionError: + print("- Permission error: Unable to write to global settings file") def read_property(self, property_name): if Path(self.global_settings_plist).exists(): @@ -31,7 +34,10 @@ class global_settings: if Path(self.global_settings_plist).exists(): plist = plistlib.load(Path(self.global_settings_plist).open("rb")) plist[property_name] = property_value - plistlib.dump(plist, Path(self.global_settings_plist).open("wb")) + try: + plistlib.dump(plist, Path(self.global_settings_plist).open("wb")) + except PermissionError: + print("- Failed to write to global settings file") def convert_defaults_to_global_settings(self): From 65516814f75161e5090262a587432dc5a33f7ca5 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 14 Jun 2022 10:04:56 -0600 Subject: [PATCH 3/3] CI: Fix workflow with empty variables --- .github/workflows/build-app-wxpython.yml | 2 +- resources/sys_patch_detect.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-app-wxpython.yml b/.github/workflows/build-app-wxpython.yml index a67e5f406..ecd65e5ca 100644 --- a/.github/workflows/build-app-wxpython.yml +++ b/.github/workflows/build-app-wxpython.yml @@ -16,7 +16,7 @@ jobs: commitdate: ${{ github.event.head_commit.timestamp }} steps: - uses: actions/checkout@v3 - - run: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 Build-Binary.command --reset_binaries --branch ${{ env.branch }} --commit ${{ env.commiturl }} --commit_date ${{ env.commitdate }} + - run: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 Build-Binary.command --reset_binaries --branch "${{ env.branch }}" --commit "${{ env.commiturl }}" --commit_date "${{ env.commitdate }}" - run: 'codesign -s "Developer ID Application: Mykola Grymalyuk (S74BDJXQMD)" -v --force --deep --timestamp --entitlements ./payloads/entitlements.plist -o runtime "dist/OpenCore-Patcher.app"' - run: cd dist; ditto -c -k --sequesterRsrc --keepParent OpenCore-Patcher.app ../OpenCore-Patcher-wxPython.app.zip - run: ./../sign-wxpython.sh diff --git a/resources/sys_patch_detect.py b/resources/sys_patch_detect.py index bec1a6476..992c147a4 100644 --- a/resources/sys_patch_detect.py +++ b/resources/sys_patch_detect.py @@ -68,7 +68,6 @@ class detect_root_patch: self.kepler_gpu = True self.supports_metal = True elif gpu.arch in [ - device_probe.NVIDIA.Archs.Tesla, device_probe.NVIDIA.Archs.Fermi, device_probe.NVIDIA.Archs.Kepler, device_probe.NVIDIA.Archs.Maxwell,