diff --git a/.github/release-notes.md b/.github/release-notes.md deleted file mode 100644 index a241336..0000000 --- a/.github/release-notes.md +++ /dev/null @@ -1 +0,0 @@ -Use with [WhateverXe 0.3.0 or newer](https://github.com/b00t0x/WhateverXe). diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 920eca0..f08f775 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,12 +73,14 @@ jobs: GH_REPO: ${{ github.repository }} RELEASE_TAG: ${{ github.ref_name }} run: | + python3 tools/release_notes.py "$RELEASE_TAG" > release-notes.md cd dist sha256sum -c SHA256SUMS if gh release view "$RELEASE_TAG" --json isDraft --jq .isDraft > release-state; then test "$(cat release-state)" = true else gh release create "$RELEASE_TAG" --verify-tag --draft \ - --title "$RELEASE_TAG" --notes-file ../.github/release-notes.md + --title "$RELEASE_TAG" --notes-file ../release-notes.md fi + gh release edit "$RELEASE_TAG" --notes-file ../release-notes.md gh release upload "$RELEASE_TAG" ./*.pkg SHA256SUMS --clobber diff --git a/AGENTS.md b/AGENTS.md index efdef80..25fd0f8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,7 +12,7 @@ validation progress, host details and test captures outside this repository, including while the repository is private. Build: python3 tools/build.py -Test: python3 tools/test.py dist/WhateverXe-Graphics-0.1.0.pkg +Test: python3 tools/test.py dist/WhateverXe-Graphics-0.2.0.pkg Preserve signed payloads exactly unless deliberately updating and requalifying an asset. Never sign original Apple compiler backends again. Keep signed bundles diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..90add59 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ +# Changelog + +## 0.2.0 + +Works with WEX **0.3.0 or newer** on previously supported GPUs. The newly added GPUs require WEX **0.5.0**; updating both components is recommended. + +### Added + +- Add graphics drivers for Alder Lake-S support and the additional GPU models accepted by WEX 0.5.0. + +### Fixed + +- Fix observed Chrome drawing failures and incorrect rendering with antialiasing enabled. +- Correct rendering errors on smaller integrated GPUs. + +See the [WEX compatibility and known issues](https://github.com/b00t0x/WhateverXe#compatibility) for tested hardware and remaining limitations. + +## 0.1.0 + +Initial signed graphics package for WhateverXe 0.3.0 or newer, covering Big Sur through Tahoe. diff --git a/README.md b/README.md index 464ca36..a9ba6a6 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,12 @@ independent release versions. AppleIntelTGLCompat is included in the package; its source and shared headers remain in the WEX repository. One TGLCompat build is shared by all supported macOS versions through the Common payload. +See the [changelog](CHANGELOG.md) for changes in each package version. + ## Requirements - Intel macOS, with the WEX/OpenCore configuration described in the WEX README. -- WhateverXe **0.3.0 or newer**, with Lilu. +- WhateverXe **0.3.0 or newer**, with Lilu; **0.5.0** is needed for the newly added GPUs. - [AMFIPass 1.4.1 Mod](extras/AMFIPass-v1.4.1-Mod-RELEASE.zip), loaded through OpenCore. The ordinary upstream AMFIPass is not a substitute for this signing chain. - SIP configuration `csr-active-config=03080000` (value `0x803`). Full SIP is not supported by this package. @@ -35,6 +37,23 @@ updates. The current payloads target builds 20G1443, 21H1320, 22H730, 23J631, 24H32 and 25G241. Check the WEX documentation and release notes before updating macOS. `amfi=0x80` and `ipc_control_port_options=0` are not required. +## Relationship to WEX + +WEX supplies the OS/GPU adaptations and display control. This package supplies +the graphics drivers, their compiler components and AppleIntelTGLCompat, which +provides shared driver services. The release numbers do not have to match. + +Graphics 0.2.0 retains the interfaces used by WEX 0.3.0/0.4.0 for previously +supported GPUs. Its Chrome/rendering fixes can therefore be used without WEX +0.5.0. Newly added GPUs and features that need changes on both sides require +WEX 0.5.0 and Graphics 0.2.0. Safari-update compatibility and the WEX display +startup fixes require the updated WEX plugin. + +Hardware regression testing for this release used updated development versions +of both components. Compatibility +with older WEX versions was checked in code and with CPU interface tests, not +with a new full hardware regression run. Updating both is recommended. + ## Using other OCLP root patches If you also use OCLP for other root patches, use the @@ -79,7 +98,7 @@ On macOS with Xcode Command Line Tools and Python 3.10 or newer: ```sh python3 tools/build.py -python3 tools/test.py dist/WhateverXe-Graphics-0.1.0.pkg +python3 tools/test.py dist/WhateverXe-Graphics-0.2.0.pkg ``` The test also needs Node.js and `rcodesign` 0.29.0; CI supplies both. The builder diff --git a/README_ja.md b/README_ja.md index 2b5fd2e..8496a41 100644 --- a/README_ja.md +++ b/README_ja.md @@ -12,10 +12,12 @@ OpenCore・EFIの設定は別途必要です。 AppleIntelTGLCompatはpkgに含まれますが、ソースと共有ヘッダーはWEXリポジトリで管理します。 全対応macOSで単一ビルドを使用し、Common payloadに収録しています。 +各pkgバージョンの変更点は[CHANGELOG](CHANGELOG.md)を参照してください。 + ## 必要な構成 - WEXのREADMEに記載されたWEX・OpenCore構成を使用するIntel macOS。 -- LiluとWhateverXe **0.3.0以上**。 +- LiluとWhateverXe **0.3.0以上**。今回追加したGPUには**0.5.0**が必要です。 - OpenCoreから読み込む[AMFIPass 1.4.1 Mod](extras/AMFIPass-v1.4.1-Mod-RELEASE.zip)。通常のupstream版AMFIPassでは、本資材の署名チェーンに対応できません。 - SIP設定`csr-active-config=03080000`(値`0x803`)。本pkgはSIP全面有効化には対応していません。 @@ -33,6 +35,21 @@ AppleIntelTGLCompatはpkgに含まれますが、ソースと共有ヘッダー macOS更新前にWEXの説明とリリースノートを確認してください。 `amfi=0x80`と`ipc_control_port_options=0`は不要です。 +## WEXとの関係 + +WEXはOS・GPUへの適応処理と表示制御を担当します。本pkgはグラフィックスドライバー、 +コンパイラー関連部品、およびドライバー共通サービスを提供するAppleIntelTGLCompatを含みます。 +両者のリリース番号を揃える必要はありません。 + +Graphics 0.2.0は、従来対応GPUについてWEX 0.3.0/0.4.0が使う呼出し仕様を維持しています。 +そのためChrome・描画の修正だけならWEX 0.5.0を必須としません。 +今回追加したGPUなど、双方の変更を使う機能にはWEX 0.5.0とGraphics 0.2.0が必要です。 +Safari更新への対応やWEX側の表示初期化修正には、新しいWEXプラグインが必要です。 + +今回の実機回帰試験は両方を更新した開発版で行っています。旧WEXとの互換性はコードとCPU上の +呼出し仕様の試験で確認しており、その組合せでの実機回帰は追加実施していません。 +通常は両方の更新を推奨します。 + ## OCLPの他のroot patchとの併用 他のroot patchのためにOCLPを併用する場合は、 @@ -74,7 +91,7 @@ Xcode Command Line ToolsとPython 3.10以上を用意したmacOSで実行しま ```sh python3 tools/build.py -python3 tools/test.py dist/WhateverXe-Graphics-0.1.0.pkg +python3 tools/test.py dist/WhateverXe-Graphics-0.2.0.pkg ``` 検証にはNode.jsと`rcodesign` 0.29.0も必要です。CIでは両方を用意します。 diff --git a/docs/SOURCES.md b/docs/SOURCES.md index 61150f8..5dca0aa 100644 --- a/docs/SOURCES.md +++ b/docs/SOURCES.md @@ -10,7 +10,7 @@ for this repository. Source and its shared headers remain in [WhateverXe](https://github.com/b00t0x/WhateverXe). All supported macOS versions use one RELEASE build of AppleIntelTGLCompat 0.5.0 from WEX commit -[`cfd968e`](https://github.com/b00t0x/WhateverXe/tree/cfd968e80fb48f5b0943ff4e20c7ade3f6918e63/AppleIntelTGLCompat). +[`31826af`](https://github.com/b00t0x/WhateverXe/tree/31826afc837977e1f09f5109173d5a2b577aff78/AppleIntelTGLCompat). Build that checkout with `python3 tools/build.py --release`, then sign the resulting kext with the Mod chain before importing the complete bundle into `payloads/Common/Library/Extensions/`. The package contains no per-OS provider @@ -25,9 +25,10 @@ The provider source and its shared headers belong to the same WEX revision. ## Graphics and compiler payloads -`payloads/Common` contains the shared TGLCompat kext and GL bundle. OS-named +`payloads/Common` contains the shared TGLCompat kext, GL bundle and compiler adapter. OS-named directories contain complete signed graphics/framebuffer, Metal, VA and OpenCL -units. Compiler adapter/backend units accompany the later OS payloads; Big Sur uses its native compiler plugin. +units. The same compiler adapter serves Monterey through Tahoe; its unchanged Apple +backend and runtime accompany those OS payloads. Big Sur uses its native compiler plugin. The imported assets preserve the established Data paths and OS-specific ABI adaptations. The builder never rewrites them or chooses hardware/connector paths. diff --git a/docs/payload-provenance.json b/docs/payload-provenance.json index 3cb4123..f7ab45d 100644 --- a/docs/payload-provenance.json +++ b/docs/payload-provenance.json @@ -2,13 +2,13 @@ "provider_source_repository": "https://github.com/b00t0x/WhateverXe", "providers": { "Common": { - "source_commit": "cfd968e80fb48f5b0943ff4e20c7ade3f6918e63", + "source_commit": "31826afc837977e1f09f5109173d5a2b577aff78", "source_file": "AppleIntelTGLCompat/AppleIntelTGLCompat.cpp", - "source_file_sha256": "f095a0a42fb91749b66e0f53152eefdae3c2d1348bd5a50b2bbc5de4d4dfb7e7", + "source_file_sha256": "b97a1edc5cb3df8b6b5172acccb2e1cd57346315c04c2dbc1ca7948daa0a4690", "version": "0.5.0", "configuration": "RELEASE", "build_command": "python3 tools/build.py --release", - "sha256": "202dd85ca41fae8d655887728ca352c33a82075d0c22f245a23258ee8b1038c7" + "sha256": "bc4343a57498d0af58935689a15696b47497240dd0e1ac83c26a1a4a683ae4b5" } }, "amfipass_sha256": "71f41de42e355d2a83e6f093ef34a5b24d0a9c9a9085830b2317f1b874f56250", diff --git a/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist b/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist index 3e68517..ba50cdd 100644 --- a/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist +++ b/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist @@ -313,7 +313,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 1000 IOProviderClass diff --git a/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics b/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics index c03bae6..6cc7685 100755 Binary files a/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics and b/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics differ diff --git a/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist b/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist index ad49073..b19be59 100644 --- a/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist +++ b/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist @@ -241,7 +241,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 80000 IOProviderClass diff --git a/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer b/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer index f7e62e2..31fba17 100755 Binary files a/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer and b/payloads/Big Sur/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer differ diff --git a/payloads/Big Sur/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver b/payloads/Big Sur/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver index e97a93b..9b60c1c 100755 Binary files a/payloads/Big Sur/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver and b/payloads/Big Sur/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver differ diff --git a/payloads/Big Sur/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver b/payloads/Big Sur/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver index cf33210..e6e9712 100755 Binary files a/payloads/Big Sur/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver and b/payloads/Big Sur/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver differ diff --git a/payloads/Big Sur/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib b/payloads/Big Sur/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib index be765e5..f2cef31 100755 Binary files a/payloads/Big Sur/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib and b/payloads/Big Sur/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib differ diff --git a/payloads/Common/Library/Extensions/AppleIntelTGLCompat.kext/Contents/MacOS/AppleIntelTGLCompat b/payloads/Common/Library/Extensions/AppleIntelTGLCompat.kext/Contents/MacOS/AppleIntelTGLCompat index f0435fd..4321b9b 100755 Binary files a/payloads/Common/Library/Extensions/AppleIntelTGLCompat.kext/Contents/MacOS/AppleIntelTGLCompat and b/payloads/Common/Library/Extensions/AppleIntelTGLCompat.kext/Contents/MacOS/AppleIntelTGLCompat differ diff --git a/payloads/Common/Library/GPUBundles/AppleIntelTGLGraphicsGLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsGLDriver b/payloads/Common/Library/GPUBundles/AppleIntelTGLGraphicsGLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsGLDriver index 820d4df..51e01ab 100755 Binary files a/payloads/Common/Library/GPUBundles/AppleIntelTGLGraphicsGLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsGLDriver and b/payloads/Common/Library/GPUBundles/AppleIntelTGLGraphicsGLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsGLDriver differ diff --git a/payloads/Tahoe/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib b/payloads/Common/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib similarity index 76% rename from payloads/Tahoe/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib rename to payloads/Common/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib index 1553d1b..a487a18 100755 Binary files a/payloads/Tahoe/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib and b/payloads/Common/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib differ diff --git a/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist b/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist index 3e68517..ba50cdd 100644 --- a/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist +++ b/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist @@ -313,7 +313,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 1000 IOProviderClass diff --git a/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics b/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics index 3dd0c7c..c045806 100755 Binary files a/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics and b/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics differ diff --git a/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist b/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist index ad49073..b19be59 100644 --- a/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist +++ b/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist @@ -241,7 +241,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 80000 IOProviderClass diff --git a/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer b/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer index fe4c242..133be33 100755 Binary files a/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer and b/payloads/Monterey/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer differ diff --git a/payloads/Monterey/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver b/payloads/Monterey/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver index 962f648..28115e1 100755 Binary files a/payloads/Monterey/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver and b/payloads/Monterey/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver differ diff --git a/payloads/Monterey/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver b/payloads/Monterey/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver index bf9dcb0..e7b62b1 100755 Binary files a/payloads/Monterey/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver and b/payloads/Monterey/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver differ diff --git a/payloads/Monterey/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib b/payloads/Monterey/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib deleted file mode 100755 index 1553d1b..0000000 Binary files a/payloads/Monterey/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib and /dev/null differ diff --git a/payloads/Monterey/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib b/payloads/Monterey/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib index c70bede..92a64d4 100755 Binary files a/payloads/Monterey/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib and b/payloads/Monterey/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib differ diff --git a/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist b/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist index bf0fef5..49b3b0e 100644 --- a/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist +++ b/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist @@ -313,7 +313,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 1000 IOProviderClass diff --git a/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics b/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics index 0631e34..b03f149 100755 Binary files a/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics and b/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics differ diff --git a/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist b/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist index 86f0f4e..cec5639 100644 --- a/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist +++ b/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist @@ -241,7 +241,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 80000 IOProviderClass diff --git a/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer b/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer index 75fbc2a..43d3ebf 100755 Binary files a/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer and b/payloads/Sequoia/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer differ diff --git a/payloads/Sequoia/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver b/payloads/Sequoia/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver index 4de3640..4e0ff0a 100755 Binary files a/payloads/Sequoia/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver and b/payloads/Sequoia/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver differ diff --git a/payloads/Sequoia/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver b/payloads/Sequoia/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver index c5dc967..f39607c 100755 Binary files a/payloads/Sequoia/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver and b/payloads/Sequoia/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver differ diff --git a/payloads/Sequoia/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib b/payloads/Sequoia/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib deleted file mode 100755 index 1553d1b..0000000 Binary files a/payloads/Sequoia/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib and /dev/null differ diff --git a/payloads/Sequoia/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib b/payloads/Sequoia/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib index 4392fb9..5e1ab23 100755 Binary files a/payloads/Sequoia/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib and b/payloads/Sequoia/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib differ diff --git a/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist b/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist index bf0fef5..49b3b0e 100644 --- a/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist +++ b/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist @@ -313,7 +313,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 1000 IOProviderClass diff --git a/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics b/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics index 77ba7c6..b28427e 100755 Binary files a/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics and b/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics differ diff --git a/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist b/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist index 86f0f4e..cec5639 100644 --- a/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist +++ b/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist @@ -241,7 +241,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 80000 IOProviderClass diff --git a/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer b/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer index 99297b3..903b18a 100755 Binary files a/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer and b/payloads/Sonoma/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer differ diff --git a/payloads/Sonoma/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver b/payloads/Sonoma/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver index 1e9faa8..a672d51 100755 Binary files a/payloads/Sonoma/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver and b/payloads/Sonoma/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver differ diff --git a/payloads/Sonoma/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver b/payloads/Sonoma/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver index 1ae7973..3d2d943 100755 Binary files a/payloads/Sonoma/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver and b/payloads/Sonoma/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver differ diff --git a/payloads/Sonoma/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib b/payloads/Sonoma/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib deleted file mode 100755 index 1553d1b..0000000 Binary files a/payloads/Sonoma/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib and /dev/null differ diff --git a/payloads/Sonoma/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib b/payloads/Sonoma/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib index 829c3d2..6011dc8 100755 Binary files a/payloads/Sonoma/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib and b/payloads/Sonoma/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib differ diff --git a/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist b/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist index bf0fef5..49b3b0e 100644 --- a/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist +++ b/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist @@ -313,7 +313,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 1000 IOProviderClass diff --git a/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics b/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics index 7d14601..39b7561 100755 Binary files a/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics and b/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics differ diff --git a/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist b/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist index 86f0f4e..cec5639 100644 --- a/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist +++ b/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist @@ -241,7 +241,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 80000 IOProviderClass diff --git a/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer b/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer index a246665..378456c 100755 Binary files a/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer and b/payloads/Tahoe/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer differ diff --git a/payloads/Tahoe/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver b/payloads/Tahoe/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver index b4be6c5..72a7e2b 100755 Binary files a/payloads/Tahoe/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver and b/payloads/Tahoe/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver differ diff --git a/payloads/Tahoe/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver b/payloads/Tahoe/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver index f31e9e9..5d7de3b 100755 Binary files a/payloads/Tahoe/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver and b/payloads/Tahoe/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver differ diff --git a/payloads/Tahoe/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib b/payloads/Tahoe/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib index d39e624..d48ab59 100755 Binary files a/payloads/Tahoe/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib and b/payloads/Tahoe/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib differ diff --git a/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist b/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist index bf0fef5..49b3b0e 100644 --- a/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist +++ b/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/Info.plist @@ -313,7 +313,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 1000 IOProviderClass diff --git a/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics b/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics index be45a75..59a3906 100755 Binary files a/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics and b/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphics.kext/Contents/MacOS/AppleIntelTGLGraphics differ diff --git a/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist b/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist index 86f0f4e..cec5639 100644 --- a/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist +++ b/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/Info.plist @@ -241,7 +241,7 @@ IOPCIClassMatch 0x03000000&0xff000000 IOPCIPrimaryMatch - 0x9a408086 0x9a498086 0x9a788086 + 0x9a408086 0x9a498086 0x9a788086 0x9a608086 0x9a688086 0x9a708086 0x46808086 0x46828086 0x46888086 0x468a8086 0x468b8086 0x46908086 0x46928086 0x46938086 0xa7808086 0xa7818086 0xa7828086 0xa7838086 0xa7888086 0xa7898086 0xa78a8086 0xa78b8086 IOProbeScore 80000 IOProviderClass diff --git a/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer b/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer index aa397e1..ede4e00 100755 Binary files a/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer and b/payloads/Ventura/Library/Extensions/AppleIntelTGLGraphicsFramebuffer.kext/Contents/MacOS/AppleIntelTGLGraphicsFramebuffer differ diff --git a/payloads/Ventura/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver b/payloads/Ventura/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver index 962f648..97a3c56 100755 Binary files a/payloads/Ventura/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver and b/payloads/Ventura/Library/GPUBundles/AppleIntelTGLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsMTLDriver differ diff --git a/payloads/Ventura/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver b/payloads/Ventura/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver index 3acfc98..a839fb0 100755 Binary files a/payloads/Ventura/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver and b/payloads/Ventura/Library/GPUBundles/AppleIntelTGLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelTGLGraphicsVADriver differ diff --git a/payloads/Ventura/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib b/payloads/Ventura/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib deleted file mode 100755 index 1553d1b..0000000 Binary files a/payloads/Ventura/Library/GPUBundles/XeCompilerAdapter.bundle/Contents/MacOS/adapter.dylib and /dev/null differ diff --git a/payloads/Ventura/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib b/payloads/Ventura/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib index d0b50c8..e48ad4d 100755 Binary files a/payloads/Ventura/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib and b/payloads/Ventura/Library/GPUBundles/XeOpenCL/libCLVMIGCPlugin.dylib differ diff --git a/tools/policy.json b/tools/policy.json index 42b9736..22633d4 100644 --- a/tools/policy.json +++ b/tools/policy.json @@ -1,5 +1,5 @@ { - "package_version": "0.1.0", + "package_version": "0.2.0", "systems": [ { "name": "Big Sur", diff --git a/tools/release_notes.py b/tools/release_notes.py new file mode 100644 index 0000000..057a40d --- /dev/null +++ b/tools/release_notes.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python3 +"""Print a version's CHANGELOG section for its GitHub Release body.""" +import argparse +import re +from pathlib import Path + + +def release_notes(changelog, version): + version = version.removeprefix('v') + sections = re.split(r'^## (.+)\n', changelog, flags=re.MULTILINE) + matches = [body.strip() for heading, body in zip(sections[1::2], sections[2::2]) + if heading == version] + if len(matches) != 1 or not matches[0]: + raise ValueError(f'Expected one nonempty CHANGELOG section for {version}') + return matches[0] + '\n' + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('version', help='release tag, with or without a v prefix') + args = parser.parse_args() + changelog = Path(__file__).resolve().parents[1] / 'CHANGELOG.md' + try: + print(release_notes(changelog.read_text(), args.version), end='') + except ValueError as error: + parser.error(str(error)) + + +if __name__ == '__main__': + main()