GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — dev-setup/android.sh at master · rockspoon/dev-setup

Expand file tree

/

android.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
51 lines (37 loc) · 1.52 KB
/

android.sh

Copy path

File metadata and controls

executable file
·
51 lines (37 loc) · 1.52 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/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 tap caskroom/versions
# Already installed in brew.sh
# Installing JAVA 8
brew cask install --appdir="~/Applications" java8
# Adding JAVA_HOME to .extra file
LINE='export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"'
grep -q "$LINE" ~/.extra || echo "$LINE" >> ~/.extra
LINE='export PATH="$JAVA_HOME/bin:$PATH"'
grep -q "$LINE" ~/.extra || echo "$LINE" >> ~/.extra
# Installing ANDROID STUDIO
brew cask install --appdir="~/Applications" android-studio
# Setting ANDROID_HOME on the .extra file. Maybe will
# need some update if SDK was installed without using Android Studio
LINE='export ANDROID_HOME="$HOME/Library/Android/sdk"'
grep -q "$LINE" ~/.extra || echo "$LINE" >> ~/.extra
LINE='PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools'
grep -q "$LINE" ~/.extra || echo "$LINE" >> ~/.extra
# Not working, better let Android Studio install it
# brew install android-sdk
# Remove outdated versions from the cellar.
brew cleanup
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.