cosmetic changes

This commit is contained in:
img2tab
2019-01-14 08:47:05 +00:00
committed by GitHub
parent e9e6fc887d
commit ce4acd1641
+10 -8
View File
@@ -2,7 +2,7 @@
# One-key semi-automatic installer of macOS on VirtualBox # One-key semi-automatic installer of macOS on VirtualBox
# (c) img2tab, licensed under GPL2.0 or higher # (c) img2tab, licensed under GPL2.0 or higher
# url: https://github.com/img2tab/macos-guest-virtualbox # url: https://github.com/img2tab/macos-guest-virtualbox
# version 0.32 # version 0.33
# Requirements: 33.5GB available storage on host # Requirements: 33.5GB available storage on host
# Dependencies: bash>4.0, unzip, wget, dmg2img, VirtualBox>5.2 # Dependencies: bash>4.0, unzip, wget, dmg2img, VirtualBox>5.2
@@ -373,12 +373,12 @@ function sendenter() {
function promptlangutils() { function promptlangutils() {
printf ${whiteonblack}' printf ${whiteonblack}'
Press enter when the language select screen is ready.'${defaultcolor} Press enter when the Language window is ready.'${defaultcolor}
read -p "" read -p ""
sendenter sendenter
printf ${whiteonblack}' printf ${whiteonblack}'
Press enter when the macOS Utilities screen is ready.'${defaultcolor} Press enter when the macOS Utilities window is ready.'${defaultcolor}
read -p "" read -p ""
kbspecial='CTRLprs F2 CTRLrls u ENTER t ENTER' kbspecial='CTRLprs F2 CTRLrls u ENTER t ENTER'
@@ -455,7 +455,7 @@ promptterminalready
kbstring='mv "${installpath}InstallESDDmg.pkg" "${installpath}InstallESD.dmg" && sed -i.bak -e "s/InstallESDDmg\.pkg/InstallESD.dmg/" -e "s/pkg\.InstallESDDmg/dmg.InstallESD/" "${installpath}InstallInfo.plist" && sed -i.bak2 -e "/InstallESD\.dmg/{n;N;N;N;d;}" "${installpath}InstallInfo.plist"' kbstring='mv "${installpath}InstallESDDmg.pkg" "${installpath}InstallESD.dmg" && sed -i.bak -e "s/InstallESDDmg\.pkg/InstallESD.dmg/" -e "s/pkg\.InstallESDDmg/dmg.InstallESD/" "${installpath}InstallInfo.plist" && sed -i.bak2 -e "/InstallESD\.dmg/{n;N;N;N;d;}" "${installpath}InstallInfo.plist"'
sendkeys sendkeys
# reboot, because the installer does't work when the partition is remounted # reboot, because the installer does not work when the partition is remounted
promptterminalready promptterminalready
kbstring="reboot" kbstring="reboot"
sendkeys sendkeys
@@ -479,12 +479,13 @@ echo ""
echo "When the installer finishes preparing, the virtual machine will reboot" echo "When the installer finishes preparing, the virtual machine will reboot"
echo "into the base system, not the installer." echo "into the base system, not the installer."
printf ${whiteonblack}' printf ${whiteonblack}'
After the reboot, press enter when the language select screen is ready.'${defaultcolor} After the reboot, press enter when the Language window '
'or Utilities window is ready.'${defaultcolor}
read -p "" read -p ""
sendenter sendenter
printf ${whiteonblack}' printf ${whiteonblack}'
Press enter when the macOS Utilities screen is ready.'${defaultcolor} Press enter when the macOS Utilities window is ready.'${defaultcolor}
read -p "" read -p ""
# Start Safari (Get Help Online) # Start Safari (Get Help Online)
@@ -505,13 +506,14 @@ printf 'In the VM, '${whiteonred}'manually'${defaultcolor}' right-click on Apple
echo "" echo ""
echo "and 'Download Linked File As...' then select ${vmname} for 'Where:'" echo "and 'Download Linked File As...' then select ${vmname} for 'Where:'"
echo "from the dropdown menu. Then unbind the mouse cursor from the virtual" echo "from the dropdown menu. Then unbind the mouse cursor from the virtual"
printf 'machine with the '${whiteonblack}'right control key.'${defaultcolor} printf 'machine with the '${whiteonblack}'right control key.'${defaultcolor}'
'
read -p " Click here and press enter when the download is complete." read -p " Click here and press enter when the download is complete."
kbspecial="CMDprs q CMDrls" kbspecial="CMDprs q CMDrls"
sendspecial sendspecial
printf ${whiteonblack}' printf ${whiteonblack}'
Press enter when the macOS Utilities screen is ready.'${defaultcolor} Press enter when the macOS Utilities window is ready.'${defaultcolor}
read -p "" read -p ""
kbspecial="CTRLprs F2 CTRLrls u ENTER t ENTER" kbspecial="CTRLprs F2 CTRLrls u ENTER t ENTER"
sendspecial sendspecial