[
  {
    "path": ".github/workflows/main.yml",
    "content": "name: CI\n\non:\n  push:\n    branches-ignore:\n      - gh-pages\n  workflow_dispatch:\n  schedule:\n    - cron: '*/30 * * * *'\n    - cron: '15 18 * * *'\n    - cron: '15 21 * * *'\n\nconcurrency:\n  group: ${{ github.workflow }}\n\npermissions:\n  contents: write\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          repository: ${{ secrets.CODE_REPO }}\n          token: ${{ secrets.CODE_TOKEN }}\n          persist-credentials: false\n\n      - name: Setup Python\n        uses: actions/setup-python@v5\n        with:\n          python-version: '3.10'\n          cache: pip\n\n      - name: Install requirements\n        run: pip3 install -r requirements.txt\n\n      - name: Run code\n        run: python3 run.py ${{ secrets.GITHUB_TOKEN }} ${{ secrets.API_URL }} ${{ secrets.API_TOKEN }}\n\n      - name: Deploy\n        uses: JamesIves/github-pages-deploy-action@v4.6.3\n        with:\n          branch: gh-pages\n          folder: deploy/\n          clean: true\n"
  },
  {
    "path": "README.md",
    "content": "# KdkSupportPkg\n\nRepository dedicated to Kernel Debug Kit archival, with a primary focus on macOS Ventura KDKs in relation to Root Volume Patching with OpenCore Legacy Patcher.\n\n----------\n\nWith macOS 13, Ventura, Apple dropped on-disk kernel binaries in `/System/Library/Extensions`. Due to this, end users cannot build Boot and System Kernel Collections without manually installing a Kernel Debug Kit from Apple's Developer Site. However, due to Apple's account requirement for downloads, automated retrieval is not possible. Thus this repo will create a release for each KDK seeded, with the tag representing the build associated.\n\nSource for Kernel Debug Kits:\n\n* [Apple Developer Site: More Downloads](https://developer.apple.com/download/all/)\n\n----------\n\nExample of pulling releases:\n\n```py\n#!/usr/bin/env python3\n\nKDK_API_LINK:        str = \"https://raw.githubusercontent.com/dortania/KdkSupportPkg/gh-pages/manifest.json\"\nKDK_REQUESTED_BUILD: str = \"22F5059b\"\n\ncatalog = requests.get(KDK_API_LINK)\nif catalog.status_code != 200:\n    # Can't reach Github\n    return None\n\ncatalog = catalog.json()\n\nfor kdk in catalog:\n    if (kdk[\"build\"] != KDK_REQUESTED_BUILD):\n        continue\n\n    return {\n        \"url\":      kdk[\"url\"],      # str (DMG URL),  ex: https://.../Kernel_Debug_Kit_13.4_build_22F5059b.dmg\n        \"build\":    kdk[\"build\"],    # str (22xxxxxx), ex: 22F5059b\n        \"version\":  kdk[\"version\"],  # str (x.y.z),    ex: 13.4\n        \"fileSize\": kdk[\"fileSize\"]  # int (bytes),    ex: 654356659\n    }\n\nreturn None\n ```\n\nFor a more in-depth implementation, see OpenCore Legacy Patcher's [kdk_handler.py's `KernelDebugKitObject` class](https://github.com/dortania/OpenCore-Legacy-Patcher/blob/a6e0c142ca8c4aacf1741eeeb58215a037578f91/resources/kdk_handler.py).\n"
  }
]