forked from donnemartin/dev-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
android.sh
executable file
·31 lines (22 loc) · 858 Bytes
/
android.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Make sure we’re using the latest Homebrew.
brew update
# Install Cask
brew install caskroom/cask/brew-cask
brew cask install --appdir="~/Applications" java
brew cask install --appdir="~/Applications" intellij-idea-ce
brew cask install --appdir="~/Applications" android-studio
brew install android-sdk
# Remove outdated versions from the cellar.
brew cleanup