homebrew-cask/Casks/sourcetree.rb

26 lines
1.0 KiB
Ruby

cask 'sourcetree' do
version '2.7.6a'
sha256 'd60614e9ab603e0ed158b6473c36e7944b2908d9943e332c505eba03dc1d829e'
# atlassian.com/software/sourcetree was verified as official when first introduced to the cask
url "https://downloads.atlassian.com/software/sourcetree/Sourcetree_#{version}.zip"
name 'Atlassian SourceTree'
homepage 'https://www.sourcetreeapp.com/'
auto_updates true
app 'Sourcetree.app'
binary "#{appdir}/Sourcetree.app/Contents/Resources/stree"
uninstall launchctl: 'com.atlassian.SourceTreePrivilegedHelper2',
quit: 'com.torusknot.SourceTreeNotMAS'
zap trash: [
'~/Library/Application Support/SourceTree',
'~/Library/Caches/com.torusknot.SourceTreeNotMAS',
'~/Library/Preferences/com.torusknot.SourceTreeNotMAS.plist',
'~/Library/Preferences/com.torusknot.SourceTreeNotMAS.LSSharedFileList.plist',
'~/Library/Saved Application State/com.torusknot.SourceTreeNotMAS.savedState',
]
end