Skip to content

Commit aef894c

Browse files
authored
Add bootstrap script (#1638)
1 parent 9087037 commit aef894c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

script/bootstrap

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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"

0 commit comments

Comments
 (0)