-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-account-desktop
37 lines (34 loc) · 1000 Bytes
/
build-account-desktop
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
#!/bin/bash
[[ $(fc-list | grep -i hack) ]] || {
echo "installing hack nerd font"
(
hack_zip="Hack.zip"
mkdir -p "$HOME/tmp/hack"
mkdir -p "$HOME/.fonts"
cd "$HOME/tmp/hack"
wget "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/$hack_zip"
unzip "$hack_zip"
mv -v *.ttf "$HOME/.fonts"
cd "$HOME"
rm -rf "$HOME/tmp/hack"
fc-cache -fv
)
}
if [[ ! -d "$HOME/android-studio" ]]
then
android_studio="android-studio-2022.1.1.20-linux.tar.gz"
echo "downloading android studio"
wget "https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2022.1.1.20/$android_studio"
tar -xvf "$android_studio"
rm -f "$android_studio"
fi
hash google-chrome-stable 2>/dev/null || {
(
cd /tmp
chrome_deb='google-chrome-stable_current_amd64.deb'
wget "https://dl.google.com/linux/direct/$chrome_deb"
apt install -y \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
"./$chrome_deb"
)
}