homebrew-cask/Casks/omnifocus.rb

39 lines
1.6 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'omnifocus' do
if MacOS.release <= :mountain_lion
version '1.10.6'
sha256 'bd3aa44dced86fc3921c01f4467422a7b87a92afbd4be642ea4d4bb8b14b728c'
url "https://downloads.omnigroup.com/software/MacOSX/10.6/OmniFocus-#{version}.dmg"
elsif MacOS.release <= :mavericks
version '2.0.4'
sha256 '3282eb7e41ec2638f68a92a6509eddd96a96c39b65b954dcedcc4e62289f22a9'
url "https://downloads.omnigroup.com/software/MacOSX/10.9/OmniFocus-#{version}.dmg"
else
2016-02-02 23:59:09 +08:00
version '2.4.2'
sha256 '3fbe4ae053433310fbd30768cdc95ebe85c3ba73d0ccc4ac49447858a2e9935a'
url "https://downloads.omnigroup.com/software/MacOSX/10.10/OmniFocus-#{version}.dmg"
end
name 'OmniFocus'
homepage 'https://www.omnigroup.com/omnifocus/'
license :commercial
app 'OmniFocus.app'
if MacOS.release <= :mountain_lion
zap delete: [
'~/Library/Application Support/OmniFocus/Plug-Ins',
'~/Library/Application Support/OmniFocus/Themes',
'~/Library/Preferences/com.omnigroup.OmniFocus.plist',
]
else
zap delete: [
'~/Library/containers/com.omnigroup.omnifocus2',
'~/Library/Preferences/com.omnigroup.OmniFocus2.LSSharedFileList.plist',
'~/Library/Preferences/com.omnigroup.OmniSoftwareUpdate.plist',
'~/Library/Caches/Metadata/com.omnigroup.OmniFocus2',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.omnigroup.omnifocus2.sfl',
'~/Library/Group Containers/34YW5XSRB7.com.omnigroup.OmniFocus',
]
end
2013-05-05 07:50:39 +08:00
end