homebrew-cask/Casks/sourcetree.rb

38 lines
1.1 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'sourcetree' do
2014-12-11 00:55:21 +08:00
if MacOS.release <= :snow_leopard
2014-12-07 14:11:58 +08:00
version '1.8.1'
sha256 '37a42f2d83940cc7e1fbd573a70c3c74a44134c956ac3305f6b153935dc01b80'
else
2016-03-25 06:21:56 +08:00
version '2.2.4'
sha256 '068b594ca1612a08c575545baa363741a1024b67e3d3a86747c84f52a0c4e032'
2014-12-07 14:11:58 +08:00
end
2016-03-09 05:03:58 +08:00
# atlassian.com was verified as official when first introduced to the cask
2014-07-17 01:47:27 +08:00
url "https://downloads.atlassian.com/software/sourcetree/SourceTree_#{version}.dmg"
2015-06-02 00:53:02 +08:00
appcast 'https://www.sourcetreeapp.com/update/SparkleAppcast.xml',
2016-03-25 06:21:56 +08:00
checkpoint: '281824c0f503c7db534e0ba7684606ab2e3810787154f91096bcf203d344596b'
name 'Atlassian SourceTree'
2015-06-02 00:53:02 +08:00
homepage 'https://www.sourcetreeapp.com/'
license :gratis
2016-02-10 07:32:42 +08:00
auto_updates true
2014-09-16 00:06:22 +08:00
app 'SourceTree.app'
binary 'SourceTree.app/Contents/Resources/stree'
2014-10-11 22:34:04 +08:00
postflight do
suppress_move_to_applications
end
uninstall launchctl: 'com.atlassian.SourceTreePrivilegedHelper2'
zap delete: [
'~/Library/Application Support/SourceTree',
'~/Library/Caches/com.torusknot.SourceTreeNotMAS',
]
2014-10-10 20:13:30 +08:00
caveats do
files_in_usr_local
end
2012-10-03 22:19:08 +08:00
end