forked from Homebrew/homebrew-cask
/
1password.rb
41 lines (32 loc) · 1.6 KB
/
1password.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
cask '1password' do
if MacOS.version <= :lion
version '3.8.22'
sha256 '3afd75f1bddf791dc7dbc9a7d92ab6eb91ee891407d750cedb7b5aff5fe8bf17'
# d13itkw33a7sus.cloudfront.net was verified as official when first introduced to the cask
url "https://d13itkw33a7sus.cloudfront.net/dist/1P/mac/1Password-#{version}.zip"
app '1Password.app'
elsif MacOS.version <= :mavericks
version '4.4.3'
sha256 '6657fc9192b67dde63fa9f67b344dc3bc6b7ff3e501d3dbe0f5712a41d8ee428'
# d13itkw33a7sus.cloudfront.net was verified as official when first introduced to the cask
url "https://d13itkw33a7sus.cloudfront.net/dist/1P/mac4/1Password-#{version}.zip"
app "1Password #{version.major}.app"
else
version '6.7.1'
sha256 '8c857369284e754040fa07b474940c1cc174c6f27d68639425d4d2994792d0a7'
# d13itkw33a7sus.cloudfront.net was verified as official when first introduced to the cask
url "https://d13itkw33a7sus.cloudfront.net/dist/1P/mac4/1Password-#{version}.zip"
app "1Password #{version.major}.app"
end
appcast 'https://app-updates.agilebits.com/product_history/OPM4',
checkpoint: '64754b0317250fc62c8167bba2610842349566cda8be738452aead94a130597b'
name '1Password'
homepage 'https://1password.com/'
auto_updates true
zap trash: [
'~/Library/Application Scripts/2BUA8C4S2C.com.agilebits.onepassword-osx-helper',
'~/Library/Containers/2BUA8C4S2C.com.agilebits.onepassword-osx-helper',
'~/Library/Containers/com.agilebits.onepassword-osx',
'~/Library/Group Containers/2BUA8C4S2C.com.agilebits',
]
end