-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap_osx.sh
executable file
·102 lines (83 loc) · 2.48 KB
/
bootstrap_osx.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/bash
function install_android_sdk() {
if [[ -z "$ANDROID_HOME" ]]; then
echo "ANDROID_HOME environment variable not set. This file can be sourced and then the function 'install_ANDROID_HOME' can be called"
return 1
fi
mkdir -p "$ANDROID_HOME"/cmdline-tools/latest || return 1
# Download Android SDK
# https://developer.android.com/studio#command-tools
local COMMANDLINETOOLSZIP_FILENAME="commandlinetools-linux-10406996_latest.zip"
local COMMANDLINETOOLSZIP_URL="https://dl.google.com/android/repository/""$COMMANDLINETOOLSZIP_FILENAME"
wget $COMMANDLINETOOLSZIP_URL
unzip ./"$COMMANDLINETOOLSZIP_FILENAME" -d "$ANDROID_HOME"
mv "$ANDROID_HOME"/cmdline-tools/NOTICE.txt "$ANDROID_HOME"/cmdline-tools/latest/
mv "$ANDROID_HOME"/cmdline-tools/source.properties "$ANDROID_HOME"/cmdline-tools/latest/
mv "$ANDROID_HOME"/cmdline-tools/lib "$ANDROID_HOME"/cmdline-tools/latest/
mv "$ANDROID_HOME"/cmdline-tools/bin "$ANDROID_HOME"/cmdline-tools/latest/
yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses
"$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-34"
rm ./"$COMMANDLINETOOLSZIP_FILENAME"
}
# https://brew.sh
if command -v brew > /dev/null; then
echo " >> Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
brew update
# Consider whether to add Bartender.
brew install --cask \
iterm2 \
visual-studio-code \
intellij-idea-ce \
android-studio \
sublime-merge \
lastpass \
istat-menus \
spotify \
grandperspective \
google-chrome \
docker \
microsoft-office
# brew install --cask microsoft-edge
# brew install --cask adobe-creative-cloud
# brew install --cask dotnet-sdk
brew install \
zsh \
bash \
coreutils \
wget \
eza \
jsonnet \
macvim \
git \
go \
node \
gradle \
openjdk \
flock \
tmux \
python@3
brew install \
docker \
docker-machine \
docker-compose
#brew install --cask unity-hub
brew install --cask \
font-inconsolata \
font-inconsolata-nerd-font \
font-cascadia-code \
font-caskaydia-cove-nerd-font \
font-jetbrains-mono \
font-jetbrains-mono-nerd-font
brew tap gdubw/gng
brew install gng
# https://github.com/Genymobile/scrcpy
brew install \
sdl2 \
ffmpeg \
libusb \
pkg-config \
meson
cd ~ || exit
install_android_sdk