cask 'sourcetree-beta' do version '2.4b7d' sha256 '2ebae54ee9bbe6b6137ca4b37add4d044e44b9e9188b8f3e52d94e17d4f92326' # 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: '1ddfe377af22059e98b42a31c4fed09248767eb6b37c06a4064793e480562227' 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" postflight do suppress_move_to_applications end 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', ] caveats do files_in_usr_local end end