diff --git a/setup.sh b/setup.sh index fbb1220..2e7a816 100755 --- a/setup.sh +++ b/setup.sh @@ -4,8 +4,17 @@ sudo apt-get install qemu-system qemu-utils python3 python3-pip -y # for Ubuntu qemu-img create -f qcow2 macOS.qcow2 64G -./fetch-macOS-v2.py +python fetch-macOS.py -qemu-img convert BaseSystem.dmg -O raw BaseSystem.img +if [ -e BaseSystem.dmg ] +then + qemu-img convert BaseSystem.dmg -O raw BaseSystem.img +else + if [ -e RecoveryImage.dmg ] +then + qemu-img convert RecoveryImage.dmg -O raw BaseSystem.img +else + echo "macOS installer not found" +fi sudo ./basic.sh