File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ function bootstrap_macos() {
4
+ # ensure we have homebrew installed
5
+ if ! command -v brew & > /dev/null; then
6
+ echo " You must install homebrew to install the dependencies."
7
+ exit 1
8
+ fi
9
+
10
+ echo " updating brew"
11
+ brew update
12
+
13
+ echo " installing java11"
14
+ brew install java11
15
+ }
16
+
17
+
18
+ function bootstrap_linux() {
19
+ if ! command -v sudo & > /dev/null; then
20
+ echo " Please install sudo before running this script"
21
+ exit
22
+ fi
23
+
24
+ echo " updating apt"
25
+ sudo apt update
26
+
27
+ echo " installing dependencies"
28
+ sudo apt install \
29
+ openjdk-11-jdk
30
+ }
31
+
32
+ if [[ " $( uname) " = " Darwin" ]]; then
33
+ bootstrap_macos
34
+ elif [[ " $( uname) " = " Linux" ]]; then
35
+ bootstrap_linux
36
+ fi
37
+
38
+ echo " Please make sure to install the latest version of Android Studio"
You can’t perform that action at this time.
0 commit comments