-
-
Save t-io/8255711 to your computer and use it in GitHub Desktop.
#!/bin/sh | |
echo Install all AppStore Apps at first! | |
# no solution to automate AppStore installs | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
echo Install and Set San Francisco as System Font | |
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
echo Install Homebrew, Postgres, wget and cask | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew tap homebrew/science | |
brew install wget | |
brew install postgresql | |
brew install go | |
brew install node | |
brew install ant | |
brew install ffmpeg | |
brew install eigen | |
brew install opencv | |
npm install -g gitjk | |
sudo npm install -g cordova | |
npm install phonegap -g | |
brew tap phinze/cask | |
brew install brew-cask | |
#brew cask search | |
#brew cask uninstall app | |
# Core Functionality | |
echo Install Core Apps | |
brew cask install --appdir="/Applications" alfred | |
brew cask install --appdir="/Applications" dropbox | |
brew cask install --appdir="/Applications" little-snitch | |
brew cask install --appdir="~/Applications" transmit | |
brew cask install --appdir="~/Applications" vlc | |
brew cask install --appdir="~/Applications" iterm2 | |
brew cask install --appdir="~/Applications" java | |
## get from App Store | |
#brew cask install --appdir="/Applications" evernote | |
#brew cask install --appdir="/Applications" wunderlist | |
#brew cask install --appdir="/Applications" clamxav | |
# Development | |
echo Install Dev Apps | |
brew cask install --appdir="/Applications" github | |
brew cask install --appdir="/Applications" heroku-toolbelt | |
brew cask install --appdir="/Applications" sublime-text | |
brew cask install --appdir="/Applications" webstorm | |
brew cask install --appdir="/Applications" pycharm-pro | |
brew cask install --appdir="/Applications" light-table | |
brew cask install --appdir="/Applications" macvim | |
brew cask install --appdir="/Applications" virtualbox | |
brew cask install --appdir="/Applications" vagrant | |
brew cask install --appdir="/Applications" sourcetree | |
brew cask install --appdir="/Applications" charles | |
brew cask install --appdir="/Applications" easyfind | |
# Google Slavery | |
echo Install Google Apps | Chrome not included cause of 1Password Plugin | |
# brew cask install --appdir="/Applications" google-chrome | |
brew cask install --appdir="/Applications" google-drive | |
brew cask install --appdir="/Applications" google-music-manager | |
brew cask install --appdir="/Applications" google-earth | |
brew cask install --appdir="/Applications" chromecast | |
# Nice to have | |
echo Install Some additional Apps | |
brew cask install --appdir="/Applications" firefox | |
brew cask install --appdir="/Applications" skype | |
brew cask install --appdir="/Applications" jdownloader | |
brew cask install --appdir="/Applications" lastfm | |
brew cask install --appdir="/Applications" all2mp3 | |
brew cask install --appdir="/Applications" spotify | |
brew cask install --appdir="/Applications" spotify-notifications | |
# Link Cask Apps to Alfred | |
brew cask alfred link | |
# cleanup | |
brew cleanup --force | |
rm -f -r /Library/Caches/Homebrew/* | |
echo "Security: https://objective-see.com/products.html" |
You can use following in your beginning of your script and remove all --appdir
from each cask install
command:
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
The domain name for homebrew installation has changed. Here is the new command to run:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
also using a brew file would be nice: https://mattstauffer.co/blog/setting-up-a-new-os-x-development-machine-part-2-global-package-managers#creating-your-brewfile
I use loops with a param list for this to make it a bit more concise: https://github.com/trevordmiller/settings/blob/master/bootstrap.sh
Google has changed the name of google-drive
to google-backup-and-sync
.
I wanted to echo @lizenas suggestion for mas-cli/mas - @rodionovd has done some amazing work and mas has never failed me for a single app from the App Store - even apps that I bought offline and then upgraded through the app store!
I'd add that if you're also considering adding Mac System level configuration to your provisioning and setup scripts in the future, you may want to also consider guarinogabriel/mac-cli
From @guarinogabriel's README :
macOS command line tools for developers
⭐️ Now with modularity and plugins! You can check the plugins folder: /mac-cli/plugins
Contributions to add new plugins and keep improving the existing ones are welcome and very much appreciated!
The ultimate tool for developers to manage their Mac. It provides a huge set of command line commands that automate the usage of >your macOS system. When you run a function, the executed command is displayed and that helps you memorize each of the Utilities > for future usage.
Gabriel (like me) does a lot of Magento project work so there are a few utilities available as optional modules focused around that platform...as well as more generally to web development on a Mac, but these are all optional during the installation.
The updated modular plugin system is awesome, and though I haven't had a chance to contribute to it yet, if you DO manage to find some system or admin functionality that hasn't yet been implemented, it's pretty easy to use the existing modules as a template and add whatever you might need to the project!
Thanks for sharing your script :)
- BJH
Throwing my two cents in ...
I typically run two scripts (not sure why) but here they are: -
-
Installs Brew + cask: https://bitbucket.org/xebufrog/automation/src/61bb87f6873c106c572ed0ca6ea5a5b4912516a3/install_brew.sh?at=master&fileviewer=file-view-default
-
Installs common apps: https://bitbucket.org/xebufrog/automation/src/61bb87f6873c106c572ed0ca6ea5a5b4912516a3/install_common_apps.sh?at=master&fileviewer=file-view-default
I recently came across this: https://github.com/mas-cli/mas
Hope there is something there y'all find useful. Whoops - just noticed the person above already recommended the 3rd point!
great 👍
Nice ! What about using mas-cli to automate AppStore installs ?! (I've never used it personally but it seems pretty straightforward)
My cask cant' find wunderlist
Hello @t-io, You can automate Mac App Store applications installation using mas-cli
# MAS-cli installation
brew cask install mas
#Search for the unique application code from the Mac App Store
mas search Evernote
> 406056744 Evernote (7.10)
# Install Evernote from Mac App Store
mas install 406056744
% mas lucky evernote
is actually useful, but counterintuitive.
% mas lucky Xcode
actually does the "right" thing, where
% mas search Xcode
returns a swathe of results that makes automating it non trivial...
Thanks!
What about git flow, bash completion, vcprompt and android studio? :)