Skip to content

Commit

Permalink
Merge pull request #3 from csrutil/feature/installer
Browse files Browse the repository at this point in the history
Feature/installer
  • Loading branch information
csrutil authored Oct 8, 2020
2 parents 5df1948 + 7044ea0 commit 7a9782d
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/installer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: installer

on:
release:
types: [created]

jobs:
build:

runs-on: ubuntu-latest
env:
ROOT: /home/runner/work/DeskMini/DeskMini

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get update
sudo apt-get install zip tree -y
- name: Download - macOS Recovery
run: |
cd $ROOT
curl -OL https://raw.githubusercontent.com/acidanthera/OpenCorePkg/master/Utilities/macrecovery/macrecovery.py
python macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000000000 download
- name: Compress
run: |
cd $ROOT
mkdir -p USB-Installer/com.apple.recovery.boot
cp BaseSystem* USB-Installer/com.apple.recovery.boot
cp -r EFI USB-Installer
echo 'Install macOS' > USB-Installer/com.apple.recovery.boot/.contentDetails
zip -r USB-Installer.zip USB-Installer
- name: Release - push to release file
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: /home/runner/work/DeskMini/DeskMini/USB-Installer.zip
env:
GITHUB_TOKEN: ${{ secrets.ACTION_GITHUB_TOKEN }}

# EFI
# ├── BOOT
# ├── OC
# com.apple.recovery.boot
# ├── BaseSystem.chunklist
# └── BaseSystem.dmg
# └── .contentDetails

0 comments on commit 7a9782d

Please sign in to comment.