forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblockblock.rb
45 lines (37 loc) · 1.83 KB
/
blockblock.rb
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
cask 'blockblock' do
if MacOS.version <= :mojave
version '0.9.9.4'
sha256 '6ab3a8224e8bc77b9abe8d41492c161454c6b0266e60e61b06931fed4b431282'
# bitbucket.org/objective-see/ was verified as official when first introduced to the cask
url "https://bitbucket.org/objective-see/deploy/downloads/BlockBlock_#{version}.zip"
installer script: {
executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock",
args: ['-install'],
sudo: true,
}
uninstall script: {
executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock",
args: ['-uninstall'],
sudo: true,
}
else
version '1.0.2'
sha256 '79d15ba6527a14aefae4084c4a4c04eb743cc561a66ec231e5bd0fabf26cf10a'
# bitbucket.org/objective-see/ was verified as official when first introduced to the cask
url "https://bitbucket.org/objective-see/deploy/downloads/BlockBlock_#{version}.zip"
installer script: {
executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock Installer",
args: ['-install'],
sudo: true,
}
uninstall script: {
executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock Installer",
args: ['-uninstall'],
sudo: true,
}
end
appcast 'https://objective-see.com/products/changelogs/BlockBlock.txt'
name 'BlockBlock'
homepage 'https://objective-see.com/products/blockblock.html'
zap trash: '~/Library/Preferences/com.objectiveSee.BlockBlock.plist'
end