cask 'sourcetree-beta' do version '2.6.1b1' sha256 '51c2cc556c637cb147f1d6b8b8c8a259a735bca8ad3ce75ff0024313f6bfe688' # atlassian.com was verified as official when first introduced to the cask url "https://downloads.atlassian.com/software/sourcetree/SourceTree_#{version}.zip" appcast 'https://www.sourcetreeapp.com/update/SparkleAppcastBeta.xml', checkpoint: 'd21837fefdfa6f72f08454de4c5f3c54f4856b14dae9c9e49ed9b4285839f8c1' name 'Atlassian SourceTree' homepage 'https://www.sourcetreeapp.com/' auto_updates true depends_on macos: '>= 10.10' app 'SourceTree-Beta.app' binary "#{appdir}/SourceTree-Beta.app/Contents/Resources/stree" uninstall launchctl: 'com.atlassian.SourceTreePrivilegedHelper2', quit: 'com.torusknot.SourceTreeNotMAS' zap delete: [ '~/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