chore: enhance logging, increase timeouts, and refine README

This commit is contained in:
Tieu Long committed 2026-02-01 20:44:31 +07:00
1 parent 7e868989c8
commit 5f151eeff5
4 files changed
+19 -21

No files matched your search

+9 -13
View File
@@ -37,17 +37,21 @@ jobs:
run: | run: |
echo "Runner OS: $(sw_vers -productName) $(sw_vers -productVersion)" echo "Runner OS: $(sw_vers -productName) $(sw_vers -productVersion)"
echo "Architecture: $(uname -m)" echo "Architecture: $(uname -m)"
echo "Available disk space:" echo ""
df -h df -h $(mktemp)
echo "Python version:" echo ""
python3 --version 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 - name: Download macrecovery.py
id: download_recovery_image id: download_recovery_image
continue-on-error: true continue-on-error: true
run: | run: |
echo "Downloading macrecovery.py from acidanthera/OpenCorePkg..." 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 - name: Get version info
id: version_info id: version_info
@@ -94,11 +98,6 @@ jobs:
echo "model=$MODEL" >> $GITHUB_OUTPUT echo "model=$MODEL" >> $GITHUB_OUTPUT
echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT
echo "os_flag=$OS_FLAG" >> $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 - name: Download macOS Recovery
run: | run: |
@@ -109,9 +108,6 @@ jobs:
else else
script -q /dev/null python3 macrecovery.py -b "${{ steps.version_info.outputs.board_id }}" -m "${{ steps.version_info.outputs.model }}" download script -q /dev/null python3 macrecovery.py -b "${{ steps.version_info.outputs.board_id }}" -m "${{ steps.version_info.outputs.model }}" download
fi fi
echo "Download completed. Checking files..."
ls -la com.apple.recovery.boot/
- name: Determine recovery image filename - name: Determine recovery image filename
id: recovery_file id: recovery_file
+3 -2
View File
@@ -34,7 +34,7 @@ on:
jobs: jobs:
build-macos-image: build-macos-image:
runs-on: macos-15-intel runs-on: macos-15-intel
timeout-minutes: 70 timeout-minutes: 80
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -93,7 +93,8 @@ jobs:
if [ "${{ github.event.inputs.image_format }}" == "iso" ]; then if [ "${{ github.event.inputs.image_format }}" == "iso" ]; then
echo "## Successfully built $(basename *.iso)" >> $GITHUB_STEP_SUMMARY echo "## Successfully built $(basename *.iso)" >> $GITHUB_STEP_SUMMARY
echo "" >> $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 else
echo "## Successfully built $(basename *.dmg.img)" >> $GITHUB_STEP_SUMMARY echo "## Successfully built $(basename *.dmg.img)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
+3 -2
View File
@@ -8,7 +8,7 @@ jobs:
refresh-forks: refresh-forks:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write # needed to create releases
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -96,6 +96,7 @@ jobs:
The one thing that could make this mass worse? 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. 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. Please don't. Apple is already mass upset.
@@ -135,7 +136,7 @@ jobs:
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
run: | 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 gh release delete forks-list -y --cleanup-tag
sleep 10 sleep 10
fi fi
+4 -4
View File
@@ -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. **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 ## 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.). * **macOS version** – Choose a version (*Sequoia*, *Sonoma*, etc.).
* **Image format** – Choose `iso` for virtual machines or `dmg` for bootable USB drives. * **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`). 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. 8. Unzip the downloaded artifact and you're done.
### Already have macOS? Run `mkmaciso` locally ### 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 ```bash
curl -s https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/mkmaciso | bash -s tahoe 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. 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 ## Requirements for mkmaciso