2019-04-23 03:20:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# jumpstart.sh: Fetches BaseSystem and converts it to a viable format.
|
2019-04-25 20:59:22 +00:00
|
|
|
# by Foxlet <foxlet@furcode.co>
|
2019-04-23 03:20:12 +00:00
|
|
|
|
|
|
|
TOOLS=$PWD/tools
|
|
|
|
|
2019-06-06 23:36:28 +00: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() {
|
2019-07-19 19:44:21 +00:00
|
|
|
local error_message="$*"
|
2019-06-06 23:36:28 +00:00
|
|
|
echo "${error_message}" 1>&2;
|
|
|
|
}
|
|
|
|
|
|
|
|
argument="$1"
|
|
|
|
case $argument in
|
2019-07-19 19:44:21 +00:00
|
|
|
-h|--help)
|
|
|
|
print_usage
|
|
|
|
;;
|
2019-06-06 23:36:28 +00:00
|
|
|
-s|--high-sierra)
|
2019-10-30 03:59:11 +00:00
|
|
|
"$TOOLS/FetchMacOS/fetch.sh" -v 10.13 || exit 1;
|
2019-06-06 23:36:28 +00:00
|
|
|
;;
|
|
|
|
-m|--mojave)
|
2019-10-30 03:59:11 +00:00
|
|
|
"$TOOLS/FetchMacOS/fetch.sh" -v 10.14 || exit 1;
|
2019-06-06 23:36:28 +00:00
|
|
|
;;
|
|
|
|
-c|--catalina|*)
|
2019-10-30 03:59:11 +00:00
|
|
|
"$TOOLS/FetchMacOS/fetch.sh" -v 10.15 || exit 1;
|
2019-06-06 23:36:28 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2019-07-19 19:44:21 +00:00
|
|
|
"$TOOLS/dmg2img" "$TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg" "$PWD/BaseSystem.img"
|