forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamethyst.rb
31 lines (27 loc) · 1.24 KB
/
amethyst.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
cask 'amethyst' do
if MacOS.version <= :mavericks
version '0.9.10'
sha256 '82adf42ce6031ab59a3072e607788e73f594ad5f21c7118aabc6c5dafe3d0b47'
url "https://ianyh.com/amethyst/versions/Amethyst-#{version}.zip"
elsif MacOS.version <= :el_capitan
version '0.10.1'
sha256 '9fd1ac2cfb8159b2945a4482046ee6d365353df617f4edbabc4e8cadc448c1e7'
url "https://ianyh.com/amethyst/versions/Amethyst-#{version}.zip"
else
version '0.14.2'
sha256 'edbc38cbdc264727d77e1893e93429d6312ce340766d900b44df89e7434ec2a1'
# github.com/ianyh/Amethyst was verified as official when first introduced to the cask
url "https://github.com/ianyh/Amethyst/releases/download/v#{version}/Amethyst.zip"
end
appcast 'https://github.com/ianyh/Amethyst/releases.atom'
name 'Amethyst'
homepage 'https://ianyh.com/amethyst/'
auto_updates true
app 'Amethyst.app'
zap trash: [
'~/Library/Caches/com.amethyst.Amethyst',
'~/Library/Preferences/com.amethyst.Amethyst.plist',
'~/Library/Cookies/com.amethyst.Amethyst.binarycookies',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.amethyst.amethyst.sfl*',
]
end