42 lines
1.6 KiB
Ruby
42 lines
1.6 KiB
Ruby
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.6.4'
|
|
sha256 '40ae4d2a3672aba1f411880dd875854d8954ad0a9e27a52436648e733e27e37f'
|
|
|
|
# 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: '59ffe7334bf28793ea8cf7268c4a77d574eb968797633c36c008a393b4ae364d'
|
|
name '1Password'
|
|
homepage 'https://1password.com/'
|
|
|
|
auto_updates true
|
|
|
|
zap delete: [
|
|
'~/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
|