-
Notifications
You must be signed in to change notification settings - Fork 12
/
cask.sh
144 lines (127 loc) · 2.52 KB
/
cask.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#!/usr/bin/env bash
#install binaries using homebrewcask
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Install Homebrew.
if [[ ! "$(type -P brew)" ]]; then
true | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Exit if, for some reason, Homebrew is not installed.
[[ ! "$(type -P brew)" ]] && e_error "Homebrew failed to install." && return 1
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Handle dependencies
brew tap buo/cask-upgrade
brew tap homebrew/cask-fonts
# dependencies for Formulas and Casks
dependencies=(
vmware-fusion
xquartz
)
# if you're running a brand-spanking OS 10.13 (High Sierra) virtualbox cask installation will fail - so install it manually first, see: http://matthewpalmer.net/blog/2017/12/10/install-virtualbox-mac-high-sierra/index.html
# Install dependencies to /Applications - default is: /Users/$user/Applications
echo "installing dependencies..."
for app in "${dependencies[@]}"
do
brew install $app --cask
done
# fonts
brew install svn
# Apps for caskroom
apps=(
1password7
1password-cli
adobe-creative-cloud
airserver
alfred
appcleaner
atom
backblaze
basecamp
beeper
blockblock
brave-browser
calibre
carbon-copy-cloner
charles
cheatsheet
chromedriver
data-rescue
dhs
discord
docker
dropbox
evernote
finicky
firefox
firefox-developer-edition
font-roboto-mono-for-powerline
font-roboto-mono-nerd-font
gitkraken
geekbench
google-chrome
handbrake
harvest
hazel
imageoptim
iterm2
jetbrains-toolbox
keepingyouawake
knockknock
krisp
ksdiff
launchrocket
loopback
lulu
max
monitorcontrol
onyx
oversight
paparazzi
postman
private-internet-access
provisionql
qlcolorcode
qlimagesize
qlmarkdown
qlprettypatch
qlstephen
qlvideo
quicklookase
quicklook-json
quicklook-csv
screenflick
rectangle
setapp
sequel-ace
signal
sketch
skype
slack
spotify
sublime-text
sublime-merge
suspicious-package
taskexplorer
telegram
tor-browser
transmission
transmit
typora
viscosity
vlc
webpquicklook
whatsapp
wireshark
)
# Install apps to /Applications - default is: /Users/$user/Applications
echo "installing cask apps..."
for app in "${apps[@]}"
do
brew install $app --cask
done
brew cleanup