1
0
Fork 0
mirror of https://github.com/foxlet/macOS-Simple-KVM.git synced 2024-11-23 03:29:41 +01:00
macOS-Simple-KVM/jumpstart.sh

40 lines
909 B
Bash
Raw Normal View History

2019-04-23 05:20:12 +02:00
#!/bin/bash
# jumpstart.sh: Fetches BaseSystem and converts it to a viable format.
2019-04-25 22:59:22 +02:00
# by Foxlet <foxlet@furcode.co>
2019-04-23 05:20:12 +02:00
TOOLS=$PWD/tools
2019-06-07 01:36:28 +02:00
print_usage() {
echo
echo "Usage: $0"
echo
echo " -s, --high-sierra Fetch High Sierra media."
echo " -m, --mojave Fetch Mojave media."
echo " -c, --catalina Fetch Catalina media."
echo
}
error() {
local error_message="$@"
echo "${error_message}" 1>&2;
}
argument="$1"
case $argument in
-s|--high-sierra)
$TOOLS/FetchMacOS/fetch.sh -p 091-95155 -c PublicRelease13 || exit 1;
;;
-m|--mojave)
$TOOLS/FetchMacOS/fetch.sh -l -c PublicRelease14 || exit 1;
;;
-c|--catalina|*)
$TOOLS/FetchMacOS/fetch.sh -l -c DeveloperSeed || exit 1;
;;
-h|--help)
print_usage
;;
esac
2019-04-23 05:20:12 +02:00
$TOOLS/dmg2img $TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg $PWD/BaseSystem.img