diff --git a/.github/workflows/build-macos-template.yml b/.github/workflows/build-macos-template.yml index 96eeda4..42a5584 100644 --- a/.github/workflows/build-macos-template.yml +++ b/.github/workflows/build-macos-template.yml @@ -29,7 +29,7 @@ jobs: PAGE=$((PAGE + 1)) done if [ "$FOUND" = "false" ]; then - echo "Workflow blocked for mysterious reasons. Starring the repo might help. Worth a shot." >> $GITHUB_STEP_SUMMARY + echo "Workflow blocked for mysterious reasons. Starring the repo might help." >> $GITHUB_STEP_SUMMARY echo "Head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run." >> $GITHUB_STEP_SUMMARY echo "![star](https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/.github/star.jpg)" >> $GITHUB_STEP_SUMMARY exit 1 diff --git a/.github/workflows/build-recovery.yml b/.github/workflows/build-recovery.yml index 3c5aa4b..be3452a 100644 --- a/.github/workflows/build-recovery.yml +++ b/.github/workflows/build-recovery.yml @@ -28,8 +28,27 @@ jobs: permissions: contents: write # needed to create releases timeout-minutes: 15 - + steps: + - name: Preflight + run: | + FOUND=false + PAGE=1 + while [ $PAGE -le 50 ]; do + DATA=$(curl -s \ + -H "Accept: application/vnd.github+json" \ + "https://api.github.com/repos/LongQT-sea/macos-iso-builder/stargazers?per_page=100&page=${PAGE}") + echo "$DATA" | grep -qi '"login".*"${{ github.actor }}"' && FOUND=true && break + [ "$(echo "$DATA" | grep -c '"login"')" -lt 100 ] && break + PAGE=$((PAGE + 1)) + done + if [ "$FOUND" = "false" ]; then + echo "Workflow blocked for mysterious reasons. Starring the repo might help." >> $GITHUB_STEP_SUMMARY + echo "Head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run." >> $GITHUB_STEP_SUMMARY + echo "![star](https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/.github/star.jpg)" >> $GITHUB_STEP_SUMMARY + exit 1 + fi + - name: Checkout repository uses: actions/checkout@v5 @@ -225,30 +244,7 @@ jobs: echo "## Successfully built **macOS ${{ steps.version_info.outputs.version_name }} Recovery** ISO" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "> [!Important]" >> $GITHUB_STEP_SUMMARY - echo "This ISO image is intended for creating macOS virtual machine on Proxmox VE, QEMU, VMware, and VirtualBox." >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "---" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "
" >> $GITHUB_STEP_SUMMARY - echo "Nothing interesting here. Move along." >> $GITHUB_STEP_SUMMARY - echo "
" >> $GITHUB_STEP_SUMMARY - echo "Told you. Nothing. Please close this." >> $GITHUB_STEP_SUMMARY - echo "
" >> $GITHUB_STEP_SUMMARY - echo "Fine. You win. Here's your prize.
" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "A macOS installer download straight from Apple's own servers. No torrents. No sketchy repacks. No \"trust me bro\" downloads." >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "**Things that did not happen:**" >> $GITHUB_STEP_SUMMARY - echo "- ❌ Downloading from a sketchy mirror" >> $GITHUB_STEP_SUMMARY - echo "- ❌ Accidentally installing a crypto miner" >> $GITHUB_STEP_SUMMARY - echo "- ❌ Spending 3 hours on a dead torrent" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "Anyway. **Do NOT** [⭐ star this repo](https://github.com/LongQT-sea/macos-iso-builder). It would be weird if you did." >> $GITHUB_STEP_SUMMARY - echo "![star](https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/.github/star.png)" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "*(...it would also be appreciated, but that's beside the point.)*" >> $GITHUB_STEP_SUMMARY - echo "
" >> $GITHUB_STEP_SUMMARY - echo "
" >> $GITHUB_STEP_SUMMARY + echo "> This ISO image is intended for creating macOS virtual machine on Proxmox VE, QEMU, VMware, and VirtualBox." >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "> [!TIP]" >> $GITHUB_STEP_SUMMARY echo "> Enable [Cloudflare WARP](https://one.one.one.one/) for faster connection to Azure Blob Storage." >> $GITHUB_STEP_SUMMARY diff --git a/README.md b/README.md index 3f6ade9..da9f951 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,15 @@ Check [Release page](https://github.com/LongQT-sea/mkmaciso/releases/tag/forks-l ## Disk Image Formats -| Feature | ISO | DMG | +| | ISO | DMG | |---|---|---| | Best for | Virtual Machines | Bootable USB | -| VM Support | Attach as virtual DVD | Convert with `qemu-img` | +| VM Support | Attach as virtual DVD | Attach as virtual hard disk | | Layout | Hybrid UDF/HFS | Raw GPT disk image | **ISO files** - These work great for VMs (Proxmox, QEMU, VirtualBox, VMware). Just attach them like a virtual DVD. They'll even mount in Windows if you need to poke around inside. -**DMG files** - Flash these to a USB drive with [Rufus](https://rufus.ie/en/#download) (Windows), `dd` (Linux), or `asr` (macOS) to make bootable installation media. For VM use, convert them to `.vhd` *(for Hyper-V)* or `.vmdk` *(for VMware)* with `qemu-img`. QEMU can use them as-is. +**DMG files** - Flash these to a USB drive with [Rufus](https://rufus.ie/en/#download) *(Windows)*, `dd` *(Linux)*, or `asr` *(macOS)* to make bootable installation media. For VM use, convert them to `.vhd` *(for Hyper-V)* or `.vmdk` *(for VMware)* with `qemu-img`. QEMU/Proxmox can use the raw disk image directly. > Note: DMG files ship with a `.img` suffix *(e.g. macOS_Sequoia.dmg.img)* so Rufus can find them without switching to "All files" in Explorer. ## Supported versions @@ -43,7 +43,7 @@ Lion, Mountain Lion, Mavericks, Yosemite, El Capitan, Sierra, High Sierra, Mojav > > -1. **[Fork](https://github.com/LongQT-sea/macos-iso-builder/fork)** this repository (requires a GitHub account). +1. Star and [Fork](https://github.com/LongQT-sea/macos-iso-builder/fork) this repository (requires a GitHub account). 2. Navigate to the **Actions** tab in your forked repository. 3. Click the green **"I understand my workflows, go ahead and enable them"** button. 4. Select a workflow from the left sidebar: @@ -54,6 +54,9 @@ Lion, Mountain Lion, Mavericks, Yosemite, El Capitan, Sierra, High Sierra, Mojav * **macOS version** – Choose a version (*Sequoia*, *Sonoma*, etc.). * **Image format** – Choose `iso` for virtual machines or `dmg` for bootable USB drives. 6. Click the green **"Run workflow"** button to start the build, then wait for the workflow to complete. +> [!Tip] +> If it fails, head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run the workflow. +> 7. Once completed, reload the page and scroll down to the **Artifacts** section. Click the artifact link to start downloading (e.g., `macOS_Sequoia_15.7.4.iso`). 8. Unzip the downloaded artifact and you're done. @@ -77,7 +80,7 @@ Running `./mkmaciso` without arguments gives you an interactive menu. For VMs, just attach the ISO as a virtual CD drive. Proxmox users — if you want better performance, look into GPU passthrough. I have another repo ([OpenCore-ISO](https://github.com/LongQT-sea/OpenCore-ISO)) that might help with installation, and one for [Intel iGPU passthrough](https://github.com/LongQT-sea/intel-igpu-passthru) specifically. -For bootable USB drives, after you flash the DMG there'll be leftover space on the drive. You can use that to create a FAT32 partition for your EFI folder if you need one. +For bootable USB drives, after you flash the DMG there will be leftover space on the drive. You can use that to create a FAT32 partition for your EFI folder if you need one. If you're using `dd` on Linux, triple-check your target device. `dd` doesn't ask for confirmation.