Files
mac_os/bin/install_dev_tools
Brooke Kuhlmann e4ef33a5f6 Added Rosetta to development tools install script
Necessary for Apple Silicon machines -- at least for the time being --
in order to translate Intel based programs that are not ready to run
natively of Silicon hardware yet.
2021-02-27 11:24:57 -07:00

18 lines
478 B
Bash
Executable File

#! /usr/bin/env bash
# Installs development tooling requirements.
printf "Installing Xcode CLI tools...\n"
xcode-select --install
printf "%s\n" "💡 ALT+TAB to view and accept Xcode license window."
read -p "Have you completed the Xcode CLI tools install (y/n)? " xcode_response
if [[ "$xcode_response" != "y" ]]; then
printf "ERROR: Xcode CLI tools must be installed before proceeding.\n"
exit 1
fi
if [[ -n "$(get_cpu)" ]]; then
softwareupdate --install-rosetta
fi