diff --git a/ci_tooling/build_modules/application.py b/ci_tooling/build_modules/application.py index 3c35ca7b0..a5bdd35cb 100644 --- a/ci_tooling/build_modules/application.py +++ b/ci_tooling/build_modules/application.py @@ -131,6 +131,26 @@ class GenerateApplication: f.write(data) + def _patch_sdk_version(self) -> None: + """ + Patch LC_BUILD_VERSION in Load Command to report the macOS 26 SDK + + This will enable the Solarium refresh when running on macOS 26 + Minor visual anomalies and padding issues exist, disable if not addressed before release + """ + _file = self._application_output / "Contents" / "MacOS" / "OpenCore-Patcher" + + _find = b'\x00\x01\x0C\x00' + _replace = b'\x00\x00\x1A\x00' + + print("Patching LC_BUILD_VERSION") + with open(_file, "rb") as f: + data = f.read() + data = data.replace(_find, _replace, 1) + + with open(_file, "wb") as f: + f.write(data) + def _embed_git_data(self) -> None: """ Embed git data @@ -177,5 +197,6 @@ class GenerateApplication: self._remove_analytics_key() self._patch_load_command() + self._patch_sdk_version() if not self._git_branch or not self._git_branch.startswith('refs/tags') else None self._embed_git_data() self._embed_resources() diff --git a/docs/images/OC-Patcher.png b/docs/images/OC-Patcher.png index 8e6be3378..eea2c9baa 100644 Binary files a/docs/images/OC-Patcher.png and b/docs/images/OC-Patcher.png differ diff --git a/payloads/Icon/AppIcons/Assets.car b/payloads/Icon/AppIcons/Assets.car index 33b1bb6d9..d322829fe 100644 Binary files a/payloads/Icon/AppIcons/Assets.car and b/payloads/Icon/AppIcons/Assets.car differ diff --git a/payloads/Icon/AppIcons/OC-Patcher.icns b/payloads/Icon/AppIcons/OC-Patcher.icns index 32c30f3d3..c9638c4f5 100644 Binary files a/payloads/Icon/AppIcons/OC-Patcher.icns and b/payloads/Icon/AppIcons/OC-Patcher.icns differ