cask "bbedit" do version "15.1.2" sha256 "f796e47cd147fa41cfeeeb8ebb2865923b5d7c8c9f52c0974cc7b8361e1897b8" url "https://s3.amazonaws.com/BBSW-download/BBEdit_#{version}.dmg", verified: "s3.amazonaws.com/BBSW-download/" name "BBEdit" desc "Text, code, and markup editor" homepage "https://www.barebones.com/products/bbedit/" livecheck do url "https://versioncheck.barebones.com/BBEdit.xml" strategy :xml do |xml| xml.get_elements("//key[text()='SUFeedEntryShortVersionString']").map { |item| item.next_element&.text&.strip } end end auto_updates true conflicts_with cask: "bbedit@14" depends_on macos: ">= :big_sur" app "BBEdit.app" binary "#{appdir}/BBEdit.app/Contents/Helpers/bbedit_tool", target: "bbedit" binary "#{appdir}/BBEdit.app/Contents/Helpers/bbdiff" binary "#{appdir}/BBEdit.app/Contents/Helpers/bbfind" binary "#{appdir}/BBEdit.app/Contents/Helpers/bbresults" manpage "#{appdir}/BBEdit.app/Contents/Resources/bbedit.1" manpage "#{appdir}/BBEdit.app/Contents/Resources/bbdiff.1" manpage "#{appdir}/BBEdit.app/Contents/Resources/bbfind.1" manpage "#{appdir}/BBEdit.app/Contents/Resources/bbresults.1" zap trash: [ "~/Library/Application Support/BBEdit", "~/Library/BBEdit", "~/Library/Caches/com.barebones.bbedit", "~/Library/Preferences/com.barebones.bbedit.plist", ] end