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
|
2014-07-01 02:28:06 +08:00
|
|
|
|
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'
|
2015-12-25 03:04:02 +08:00
|
|
|
name 'Atlassian SourceTree'
|
2015-06-02 00:53:02 +08:00
|
|
|
homepage 'https://www.sourcetreeapp.com/'
|
2015-07-31 01:06:04 +08:00
|
|
|
license :gratis
|
2014-06-27 08:01:44 +08:00
|
|
|
|
2016-02-10 07:32:42 +08:00
|
|
|
auto_updates true
|
|
|
|
|
2014-09-16 00:06:22 +08:00
|
|
|
app 'SourceTree.app'
|
2014-01-06 04:31:25 +08:00
|
|
|
binary 'SourceTree.app/Contents/Resources/stree'
|
2014-10-11 22:34:04 +08:00
|
|
|
|
2016-04-10 06:28:20 +08:00
|
|
|
postflight do
|
|
|
|
suppress_move_to_applications
|
|
|
|
end
|
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
uninstall launchctl: 'com.atlassian.SourceTreePrivilegedHelper2'
|
2014-12-30 22:56:14 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
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
|