Skip to content

Instantly share code, notes, and snippets.

@yaSebastian
Last active December 13, 2020 13:59
Show Gist options
  • Select an option

  • Save yaSebastian/3674ab8e6f570dc8dfb34b4c741b4fcc to your computer and use it in GitHub Desktop.

Select an option

Save yaSebastian/3674ab8e6f570dc8dfb34b4c741b4fcc to your computer and use it in GitHub Desktop.
Temporary macOS Setup Script, to be integrated into https://github.com/yaSebastian/sw2.AutoConfig "as soon as I find the time" ™ .
# To execute this file in terminal, run:
# /bin/bash -c "$(curl -fsSL https://git.io/Jfx2d)"
# TODO: Consider adding "?nocache" in case caching becomes a problem during creation of this script
# TODO: Figure out how to include sudo without a timeout
# TODO: Prevent the escape key from bein printed (after Mac App Store check)
# TODO: Do checks manually, only once, store the results somewhere
# TODO: Copy Return/Abort from homebrew
# TODO: Find a way to automate homebrew acceptance
# TODO: Sudo in advance
# TODO: Show list of actions, like homebrew, include homebrew actions in advance if possible
# TODO: Do installations only once, homebrew, mas-cli, apps...
# TODO: brew cask install --appdir? Review
# TODO: Check if homebrew is installed, if so, only update, same for mas and other stuff (maybe not chrome etc., might be running)
# TODO: Check what happens with MAS Bundles like https://apps.apple.com/de/app-bundle/microsoft-365/id1450038993?mt=12
# TODO: Automate the manual "open /usr/local/Caskroom/battle-net/latest/Battle.net-Setup.app"
# Manual steps
echo
echo AutoSetup v2020-06-29-00-29
echo
echo /////////////
echo / ATTENTION /
echo /////////////
echo
echo Please follow every single instruction, or the script might fail.
echo Please note, some apps might take long times to download and install, especially big ones like Xcode. The script might appear hung up, but it is not. Depending on the application count in it it might run for multiple hours in total.
echo
# App Store
echo For the App Store Apps to be installed, you must be logged in to your App Store account.
echo Press
echo - Escape if you are already logged in on the Mac App Store
echo - Any other key to open the Mac App Store and log in or check your login status
read -p "..." -n1 -s key
echo
if [[ "$key" != $'\e' ]]; then
open -a "App Store"
read -p "Press escape to terminate the script if there is any issue with your login or any other key to continue..." -n1 -s key
echo
if [[ "$key" == $'\e' ]]; then exit -1; fi
fi
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install mas
# Productivity
mas install 1333542190 # 1Password
mas install 904280696 # Things 3 https://apps.apple.com/de/app/things-3/id904280696?mt=12
brew install --cask textexpander
mas install 901110441 # Ninox https://apps.apple.com/de/app/ninox-database/id901110441?mt=12
# Browsers and extensions
brew install --cask firefox
brew install --cask microsoft-edge
mas install 1473726602 # Tab Space (Safari Extension)
mas install 568494494 # Pocket
mas install 1477385213 # Save to Pocket
mas install 442168834 # Site Sucker https://apps.apple.com/de/app/sitesucker/id442168834?mt=12
mas install 1226444549 # Phiewer
# Microsoft Office
echo Installing Microsoft Office Apps (roughly 4 GB in total)
mas install 462054704 # Word
mas install 462058435 # Excel
mas install 462062816 # PowerPoint https://apps.apple.com/de/app/microsoft-powerpoint/id462062816?mt=12
mas install 985367838 # Outlook https://apps.apple.com/de/app/microsoft-outlook/id985367838?mt=12
mas install 784801555 # OneNote https://apps.apple.com/de/app/microsoft-onenote/id784801555?mt=12
mas install 823766827 # OneDrive https://apps.apple.com/de/app/onedrive/id823766827?mt=12
mas install 1274495053 # Microsoft ToDo https://apps.apple.com/de/app/microsoft-to-do/id1274495053?mt=12
brew install --cask microsoft-teams
# Development
brew install --cask visual-studio-code
brew install --cask gitkraken
mas install 640199958 # Apple Developer
mas install 1496833156 # Swift Playgrounds
# TODO: Open Issue with HomeBrew/mas, Xcode is being downloaded before the messages is printed
echo Downloading Xcode, this can take a while...
mas install 497799835 # Xcode
brew install --cask bit-slicer
# Gaming
brew install --cask discord
brew install --cask steam
brew install --cask battle-net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment