diff --git a/.github/workflows/build-recovery.yml b/.github/workflows/build-recovery.yml index 886dc74..4a65c31 100644 --- a/.github/workflows/build-recovery.yml +++ b/.github/workflows/build-recovery.yml @@ -37,17 +37,21 @@ jobs: run: | echo "Runner OS: $(sw_vers -productName) $(sw_vers -productVersion)" echo "Architecture: $(uname -m)" - echo "Available disk space:" - df -h - echo "Python version:" - python3 --version + echo "" + df -h $(mktemp) + echo "" + echo "RAM: $(top -l 1 | grep PhysMem)" + echo "" + echo "CPU: $(sysctl -n machdep.cpu.brand_string)" + echo "" + echo "Python version: $(python3 --version)" - name: Download macrecovery.py id: download_recovery_image continue-on-error: true run: | echo "Downloading macrecovery.py from acidanthera/OpenCorePkg..." - curl -OL "https://raw.githubusercontent.com/acidanthera/OpenCorePkg/master/Utilities/macrecovery/macrecovery.py" + curl --retry 3 --max-time 10 --connect-timeout 3 -OL "https://raw.githubusercontent.com/acidanthera/OpenCorePkg/master/Utilities/macrecovery/macrecovery.py" - name: Get version info id: version_info @@ -94,11 +98,6 @@ jobs: echo "model=$MODEL" >> $GITHUB_OUTPUT echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT echo "os_flag=$OS_FLAG" >> $GITHUB_OUTPUT - - echo "Board ID: $BOARD_ID" - echo "Model: $MODEL" - echo "Version Name: $VERSION_NAME" - echo "OS Flag: $OS_FLAG" - name: Download macOS Recovery run: | @@ -109,9 +108,6 @@ jobs: else script -q /dev/null python3 macrecovery.py -b "${{ steps.version_info.outputs.board_id }}" -m "${{ steps.version_info.outputs.model }}" download fi - - echo "Download completed. Checking files..." - ls -la com.apple.recovery.boot/ - name: Determine recovery image filename id: recovery_file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0df963..abc4689 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ on: jobs: build-macos-image: runs-on: macos-15-intel - timeout-minutes: 70 + timeout-minutes: 80 steps: - name: Checkout repository @@ -93,7 +93,8 @@ jobs: if [ "${{ github.event.inputs.image_format }}" == "iso" ]; then echo "## Successfully built $(basename *.iso)" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - echo "This ISO image is intended for creating macOS virtual machines on Proxmox VE, QEMU, VMware, and VirtualBox." >> $GITHUB_STEP_SUMMARY + echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY + echo "> This ISO image is intended for creating macOS virtual machines on Proxmox VE, QEMU, VMware, and VirtualBox." >> $GITHUB_STEP_SUMMARY else echo "## Successfully built $(basename *.dmg.img)" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/refresh-forks-list.yml b/.github/workflows/refresh-forks-list.yml index 9f25b34..beeef2b 100644 --- a/.github/workflows/refresh-forks-list.yml +++ b/.github/workflows/refresh-forks-list.yml @@ -8,7 +8,7 @@ jobs: refresh-forks: runs-on: ubuntu-latest permissions: - contents: write + contents: write # needed to create releases steps: - name: Checkout repository @@ -96,6 +96,7 @@ jobs: The one thing that could make this mass worse? If you [⭐ starred this repo](https://github.com/LongQT-sea/macos-iso-builder) and mass spread it around. + ![star](https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/.github/star.png) Please don't. Apple is already mass upset. @@ -135,7 +136,7 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - if gh release view forks-list > /dev/null 2>&1; then + if gh release view forks-list; then gh release delete forks-list -y --cleanup-tag sleep 10 fi diff --git a/README.md b/README.md index a10479d..46fbbfc 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Check [Release page](https://github.com/LongQT-sea/mkmaciso/releases/tag/forks-l **ISO files** - These work great for VMs (Proxmox, QEMU, VirtualBox, VMware). Just attach them like a virtual DVD. They're hybrid UDF/HFS format, so they'll even mount in Windows if you need to poke around inside. -**DMG files** - Raw disk images with GPT partition tables. Flash these to a USB drive with Rufus (Windows), `dd` (Linux), or `asr` (macOS) to make bootable installation media. You can also convert them to VHD/VMDK with `qemu-img` if you want. +**DMG files** - Raw disk images with GPT partition tables. Flash these to a USB drive with [Rufus](https://rufus.ie/en/#download) (Windows), `dd` (Linux), or `asr` (macOS) to make bootable installation media. You can also convert them to VHD/VMDK with `qemu-img` if you want. ## Supported versions @@ -44,13 +44,13 @@ 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 (this may take 10–60 minutes). +6. Click the green **"Run workflow"** button to start the build, then wait for the workflow to complete. 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.3.iso`). 8. Unzip the downloaded artifact and you're done. ### Already have macOS? Run `mkmaciso` locally -Quick run (change 'tahoe' to whatever you want): +Quick run using Terminal.app (change `tahoe` to whatever you want): ```bash curl -s https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/mkmaciso | bash -s tahoe ``` @@ -70,7 +70,7 @@ For VMs, just attach the ISO as a virtual CD drive. Proxmox users - if you want 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. -If you're using dd on Linux, triple-check your target device. dd doesn't ask for confirmation. +If you're using `dd` on Linux, triple-check your target device. `dd` doesn't ask for confirmation. ## Requirements for mkmaciso