-
Notifications
You must be signed in to change notification settings - Fork 0
/
apps.sh
executable file
·80 lines (73 loc) · 2.01 KB
/
apps.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
#!/bin/sh
# Core apps
APPS_CORE=(jump ripgrep htop neovim sublime-text vlc spotify firefox)
APPS_FONTS=()
APPS_DEV=(git go sublime-merge)
APPS_WORK=(slack zoom)
APPS_STREAM=()
APPS_CREATIVE=()
APPS_GAMING=(steam)
INSTALL_CMD=""
if [[ "$OS" == "MACOS" ]]; then
APPS_CORE+=(iterm2 sublime-text daisydisk scroll-reverser easy-move-plus-resize sizeup the-unarchiver)
APPS_FONTS+=(font-go font-cozette)
APPS_DEV+=(hex-fiend monodraw)
APPS_DEV_FORCE_CASK=(wireshark dash docker)
APPS_WORK+=()
APPS_STREAM+=(obs)
APPS_CREATIVE+=(adobe-creative-cloud)
APPS_GAMING+=()
INSTALL_CMD="brew install"
run_cmd brew update
run_cmd brew upgrade
run_cmd brew analytics off
run_cmd brew tap homebrew/cask-fonts
elif [[ "$OS" == "ARCH" ]]; then
APPS_CORE+=(sublime-text-4)
APPS_FONTS+=(ttf-go-mono-git cozette-ttf cozette-otb)
APPS_DEV+=(wireshark zeal-git docker)
APPS_WORK+=()
APPS_STREAM+=(obs-studio)
APPS_CREATIVE+=()
APPS_GAMING+=()
INSTALL_CMD="yay -S"
run_cmd yay -Syu
else
echo "Unsupported OS for app installs: $OS"
exit 127
fi
# build full apps lists where possible
APPS_ADD=()
if [[ "$INSTALL_CORE" == true ]]; then
APPS_ADD+=("${APPS_CORE[@]}")
fi
if [[ "$INSTALL_FONTS" == true ]]; then
APPS_ADD+=("${APPS_FONTS[@]}")
fi
if [[ "$INSTALL_DEV" == true ]]; then
APPS_ADD+=("${APPS_DEV[@]}")
fi
if [[ "$INSTALL_WORK" == true ]]; then
APPS_ADD+=("${APPS_WORK[@]}")
fi
if [[ "$INSTALL_STREAM" == true ]]; then
APPS_ADD+=("${APPS_STREAM[@]}")
fi
if [[ "$INSTALL_CREATIVE" == true ]]; then
APPS_ADD+=("${APPS_CREATIVE[@]}")
fi
if [[ "$INSTALL_GAMING" == true ]]; then
APPS_ADD+=("${APPS_GAMING[@]}")
fi
# if we have APPS_ADD, install them
if [[ ${#APPS_ADD[@]} -gt 0 ]]; then
run_cmd $INSTALL_CMD ${APPS_ADD[@]}
fi
# cask special case
APPS_ADD_CASK=()
if [[ "$INSTALL_DEV" == true ]]; then
APPS_ADD_CASK+=("${APPS_DEV_FORCE_CASK[@]}")
fi
if [[ ${#APPS_ADD_CASK[@]} -gt 0 ]]; then
run_cmd brew install --cask ${APPS_ADD_CASK[@]}
fi