Update setup.sh

This commit is contained in:
notAperson535 2022-02-01 16:05:02 -05:00 committed by GitHub
parent 2279b9bb88
commit cb5f0999c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -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