From b8278f505f364ccc71c3af8c0f67588844991f72 Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Tue, 14 Apr 2020 22:26:49 +0300 Subject: [PATCH] updated welcome message with interaction warning --- macos-guest-virtualbox.sh | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index 849cda9..0b51487 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -2,7 +2,7 @@ # Push-button installer of macOS on VirtualBox # (c) myspaghetti, licensed under GPL2.0 or higher # url: https://github.com/myspaghetti/macos-guest-virtualbox -# version 0.89.6 +# version 0.89.7 # Dependencies: bash coreutils gzip unzip wget xxd dmg2img # Supported versions: @@ -60,23 +60,18 @@ SYSTEM_INTEGRITY_PROTECTION='10' # '10' - enabled, '77' - disabled # welcome message function welcome() { printf ' - Push-button installer of macOS on VirtualBox --------------------------------------------------------------------------------- + '"${highlight_color}"'Push-button installer of macOS on VirtualBox'"${default_color}"' -This script installs only open-source software and unmodified Apple binaries. +This script installs only open-source software and unmodified Apple binaries, +and requires about '"${highlight_color}"'40GB'"${default_color}"' of available storage, of which 20GB are for temporary +installation files that may be deleted when the script is finished. -The script checks for dependencies and will prompt to install them if unmet. +The script interacts with the virtual machine twice, '"${highlight_color}"'please do not interact'"${default_color}"' +'"${highlight_color}"'with the virtual machine manually'"${default_color}"' before the script is finished. -For iCloud and iMessage connectivity, the script needs to be edited with genuine -or genuine-like Apple parameters. macOS will work without these parameters, but -Apple-connected apps will not. - -The installation requires about '"${highlight_color}"'40GB'"${default_color}"' of available storage, 20GB for -temporary installation files and 20GB for the virtual machine'"'"'s dynamically -allocated storage disk image. - -Documentation about optional configuration, resuming the script by stages, and -other topics can be viewed with the following command: +Documentation about optional configuration, '"${highlight_color}"'iCloud and iMessage connectivity'"${default_color}"', +resuming the script by stages, and other topics can be viewed with the +following command: ' would_you_like_to_know_less @@ -1157,10 +1152,10 @@ echo '########################################################################## # GLOBAL VARIABLES AND FUNCTIONS THAT MIGHT BE CALLED MORE THAN ONCE # terminal text colors -warning_color="\e[48;2;255;0;0m\e[38;2;255;255;255m" # white on red -highlight_color="\e[48;2;0;0;9m\e[38;2;255;255;255m" # white on black -low_contrast_color="\e[48;2;0;0;9m\e[38;2;128;128;128m" # grey on black -default_color="\033[0m" +warning_color=$'\e[48;2;255;0;0m\e[38;2;255;255;255m' # white on red +highlight_color=$'\e[48;2;0;0;9m\e[38;2;255;255;255m' # white on black +low_contrast_color=$'\e[48;2;0;0;9m\e[38;2;128;128;128m' # grey on black +default_color=$'\033[0m' # prints positional parameters in low contrast preceded and followed by newline function print_dimly() {