cask 'sourcetree-beta' do version '2.4b4' sha256 '5f519985b8afa059786c96de14ea825b3b6df5c17e3093b5f8cf3bcc03e2a6bd' # 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: '0bba41a2d7156a2d7ad6fef7ea4eb18c4702cec78980f4d470817bf860acfa12' name 'Atlassian SourceTree' homepage 'https://www.sourcetreeapp.com/' license :gratis 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