homebrew-cask/Casks/forklift.rb

37 lines
1.5 KiB
Ruby

cask 'forklift' do
version '3.1.2'
sha256 'de8e9d0d0f4b20e9724b7ac5405b715cb39aa019bf4d7251a80c2c7f9df01a71'
url "https://download.binarynights.com/ForkLift#{version}.zip"
appcast "https://updates.binarynights.com/ForkLift#{version.major}/update.xml",
checkpoint: '6e08d1434132e0257ca71889e4d73cac298c6c5cbacd30f96f31034e4cb8ac07'
name 'ForkLift'
homepage 'https://binarynights.com/forklift/'
auto_updates true
depends_on macos: '>= :el_capitan'
app 'ForkLift.app'
uninstall delete: '/Library/PrivilegedHelperTools/com.binarynights.ForkLiftHelper',
launchctl: [
'com.binarynights.ForkLiftHelper',
'com.binarynights.ForkLiftMini',
],
quit: [
"com.binarynights.ForkLift-#{version.major}",
'com.binarynights.ForkLiftMini',
]
zap trash: [
'~/Library/Application Support/ForkLift',
"~/Library/Caches/com.binarynights.ForkLift-#{version.major}",
"~/Library/Cookies/com.binarynights.ForkLift-#{version.major}.binarycookies",
'~/Library/Logs/ForkLift',
'~/Library/Logs/ForkLiftMini',
"~/Library/Preferences/com.binarynights.ForkLift-#{version.major}.plist",
'~/Library/Preferences/com.binarynights.ForkLiftMini.plist',
"~/Library/Saved Application State/com.binarynights.ForkLift-#{version.major}.savedState",
]
end