|
|
@ -24,6 +24,12 @@ General options:
|
|
|
|
--width <string> Resolution x axis length in pixels (default 1920)
|
|
|
|
--width <string> Resolution x axis length in pixels (default 1920)
|
|
|
|
--height <string> Resolution y axis length in pixels (default 1080
|
|
|
|
--height <string> Resolution y axis length in pixels (default 1080
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--master-plist-url <url> Specify an alternative master plist, via URL.
|
|
|
|
|
|
|
|
--master-plist | --custom-plist <filename>
|
|
|
|
|
|
|
|
Optionally change the input plist. Placeholders:
|
|
|
|
|
|
|
|
{{DEVICE_MODEL}}, {{SERIAL}}, {{BOARD_SERIAL}},
|
|
|
|
|
|
|
|
{{UUID}}, {{ROM}}, {{WIDTH}}, {{HEIGHT}}
|
|
|
|
|
|
|
|
|
|
|
|
--help, -h, help Display this help and exit
|
|
|
|
--help, -h, help Display this help and exit
|
|
|
|
--plists Create corresponding config.plists for each serial set.
|
|
|
|
--plists Create corresponding config.plists for each serial set.
|
|
|
|
--bootdisks [SLOW] Create corresponding boot disk images for each serial set.
|
|
|
|
--bootdisks [SLOW] Create corresponding boot disk images for each serial set.
|
|
|
@ -54,7 +60,6 @@ Project: https://github.com/sickcodes/Docker-OSX/
|
|
|
|
"
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
|
|
MACINFOPKG_VERSION=2.1.2
|
|
|
|
MACINFOPKG_VERSION=2.1.2
|
|
|
|
PLIST_MASTER=config-nopicker-custom.plist
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# gather arguments
|
|
|
|
# gather arguments
|
|
|
|
while (( "$#" )); do
|
|
|
|
while (( "$#" )); do
|
|
|
@ -155,6 +160,39 @@ while (( "$#" )); do
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--master-plist-url=* )
|
|
|
|
|
|
|
|
export MASTER_PLIST_URL="${1#*=}"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--master-plist-url* )
|
|
|
|
|
|
|
|
export MASTER_PLIST_URL="${2}"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--master-plist=* )
|
|
|
|
|
|
|
|
export MASTER_PLIST="${1#*=}"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--master-plist* )
|
|
|
|
|
|
|
|
export MASTER_PLIST="${2}"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--custom-plist=* )
|
|
|
|
|
|
|
|
export MASTER_PLIST="${1#*=}"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--custom-plist* )
|
|
|
|
|
|
|
|
export MASTER_PLIST="${2}"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
--plists )
|
|
|
|
--plists )
|
|
|
|
export CREATE_PLISTS=1
|
|
|
|
export CREATE_PLISTS=1
|
|
|
|
shift
|
|
|
|
shift
|
|
|
@ -206,8 +244,22 @@ download_qcow_efi_folder () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
generate_serial_sets () {
|
|
|
|
generate_serial_sets () {
|
|
|
|
[[ -e ./config-nopicker-custom.plist ]] || wget https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${MASTER_PLIST}" ]]; then
|
|
|
|
|
|
|
|
[[ -e "${MASTER_PLIST}" ]] || echo "Could not find: ${MASTER_PLIST}"
|
|
|
|
|
|
|
|
elif [[ "${MASTER_PLIST}" ]] && [[ "${MASTER_PLIST_URL}" ]];
|
|
|
|
|
|
|
|
echo 'You specified both a custom plist file AND a custom plist url. Use one or the other.'
|
|
|
|
|
|
|
|
elif [[ "${MASTER_PLIST_URL}" ]];
|
|
|
|
|
|
|
|
wget -o "./${MASTER_PLIST:=/config-custom.plist}" "${MASTER_PLIST_URL}" \
|
|
|
|
|
|
|
|
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist'
|
|
|
|
|
|
|
|
wget -o "./${MASTER_PLIST:=/config-nopicker-custom.plist}" "${MASTER_PLIST_URL}" \
|
|
|
|
|
|
|
|
|| echo "Could not download ${MASTER_PLIST_URL}" && exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
[[ -e ./opencore-image-ng.sh ]] || wget https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/opencore-image-ng.sh && chmod +x opencore-image-ng.sh
|
|
|
|
[[ -e ./opencore-image-ng.sh ]] || wget https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/opencore-image-ng.sh && chmod +x opencore-image-ng.sh
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p "${OUTPUT_DIRECTORY}/envs"
|
|
|
|
mkdir -p "${OUTPUT_DIRECTORY}/envs"
|
|
|
|
export DATE_NOW="$(date +%F-%T)"
|
|
|
|
export DATE_NOW="$(date +%F-%T)"
|
|
|
|
export DEVICE_MODEL="${DEVICE_MODEL:=iMacPro1,1}"
|
|
|
|
export DEVICE_MODEL="${DEVICE_MODEL:=iMacPro1,1}"
|
|
|
@ -271,7 +323,7 @@ EOF
|
|
|
|
-e s/{{ROM}}/"${ROM}"/g \
|
|
|
|
-e s/{{ROM}}/"${ROM}"/g \
|
|
|
|
-e s/{{WIDTH}}/"${WIDTH}"/g \
|
|
|
|
-e s/{{WIDTH}}/"${WIDTH}"/g \
|
|
|
|
-e s/{{HEIGHT}}/"${HEIGHT}"/g \
|
|
|
|
-e s/{{HEIGHT}}/"${HEIGHT}"/g \
|
|
|
|
"${PLIST_MASTER}" > "${OUTPUT_DIRECTORY}/plists/${SERIAL}.config.plist" || exit 1
|
|
|
|
"${MASTER_PLIST}" > "${OUTPUT_DIRECTORY}/plists/${SERIAL}.config.plist" || exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${CREATE_QCOWS}" ]]; then
|
|
|
|
if [[ "${CREATE_QCOWS}" ]]; then
|
|
|
|