#!/bin/sh # This script generates the boot commands for the macOS installer GUI. # It is run on your local machine, not inside the VM. # Sources: # - https://github.com/cirruslabs/macos-image-templates/blob/master/templates/vanilla-sequoia.pkr.hcl if ! [ "${release}" ] || ! [ "${username}" ] || ! [ "${password}" ]; then echo "Script must be run with variables: release, username, and password" >&2 exit 1 fi # Hello, hola, bonjour, etc. echo "" # Select Your Country and Region echo "italianoenglish" echo "united states" # Written and Spoken Languages echo "" # Accessibility echo "" # Data & Privacy echo "" # Migration Assistant echo "" # Sign In with Your Apple ID echo "" # Are you sure you want to skip signing in with an Apple ID? echo "" # Terms and Conditions echo "" # I have read and agree to the macOS Software License Agreement echo "" # Create a Computer Account echo "${username}${password}${password}" # Enable Location Services echo "" # Are you sure you don't want to use Location Services? echo "" # Select Your Time Zone echo "UTC" # Analytics echo "" # Screen Time echo "" # Siri echo "" # Choose Your Look echo "" if [ "${release}" = "13" ] || [ "${release}" = "14" ]; then # Enable Voice Over echo "v" else # Welcome to Mac echo "" # Enable Keyboard navigation echo "Terminal" echo "defaults write NSGlobalDomain AppleKeyboardUIMode -int 3" echo "q" fi # Now that the installation is done, open "System Settings" echo "System Settings" # Navigate to "Sharing" echo "fsharing" if [ "${release}" = "13" ]; then # Navigate to "Screen Sharing" and enable it echo "" # Navigate to "Remote Login" and enable it echo "" # Open "Remote Login" details echo "" # Enable "Full Disk Access" echo "" # Click "Done" echo "" # Disable Voice Over echo "" elif [ "${release}" = "14" ]; then # Navigate to "Screen Sharing" and enable it echo "" # Navigate to "Remote Login" and enable it echo "" # Disable Voice Over echo "" elif [ "${release}" = "15" ]; then # Navigate to "Screen Sharing" and enable it echo "" # Navigate to "Remote Login" and enable it echo "" fi # Quit System Settings echo "q"