homebrew-cask/Casks/selfcontrol.rb

23 lines
687 B
Ruby

cask 'selfcontrol' do
if MacOS.release <= :snow_leopard
version '1.5.1'
sha256 'd3823a1e9ba0b47dc2cb39c93cd51837c2dafc7d5a5a564825f4a440fd2ab9ad'
else
version '2.1.1'
sha256 'ac492ce596f7189088db56c1e8a2663504d1036264745a66a7202fe5b4dca6e8'
end
url "http://downloads.selfcontrolapp.com/SelfControl-#{version}.zip"
appcast 'https://selfcontrolapp.com/SelfControlAppcast.xml',
checkpoint: 'ed03ff3ec9c2616091c15546808a244f8780d8ba0d27499d4b3bd4316176fea9'
name 'SelfControl'
homepage 'https://selfcontrolapp.com/'
license :gpl
auto_updates true
app 'SelfControl.app'
zap delete: '~/Library/Preferences/org.eyebeam.SelfControl.plist'
end