cask "ghostty@tip" do version "10943,f04a388f00199ae271a428606fd1f993c202ab64" sha256 "ae0746d4b02dfea5aaa0eaf433021f4830485235892a693966c98a57b26613c3" url "https://tip.files.ghostty.org/#{version.csv.second}/Ghostty.dmg" name "Ghostty" desc "Terminal emulator that uses platform-native UI and GPU acceleration" homepage "https://ghostty.org/" livecheck do url "https://tip.files.ghostty.org/appcast.xml" regex(%r{/(\h+)/Ghostty\.dmg}i) strategy :sparkle do |item, regex| match = item.url&.match(regex) next if match.blank? "#{item.version},#{match[1]}" end end auto_updates true conflicts_with cask: "ghostty" depends_on macos: ">= :ventura" app "Ghostty.app" binary "#{appdir}/Ghostty.app/Contents/MacOS/ghostty" manpage "#{appdir}/Ghostty.app/Contents/Resources/man/man1/ghostty.1" manpage "#{appdir}/Ghostty.app/Contents/Resources/man/man5/ghostty.5" bash_completion "#{appdir}/Ghostty.app/Contents/Resources/bash-completion/completions/ghostty.bash" fish_completion "#{appdir}/Ghostty.app/Contents/Resources/fish/vendor_completions.d/ghostty.fish" zsh_completion "#{appdir}/Ghostty.app/Contents/Resources/zsh/site-functions/_ghostty" zap trash: [ "~/.config/ghostty/", "~/Library/Application Support/com.mitchellh.ghostty", "~/Library/Caches/com.mitchellh.ghostty", "~/Library/HTTPStorages/com.mitchellh.ghostty", "~/Library/Preferences/com.mitchellh.ghostty.plist", "~/Library/Saved Application State/com.mitchellh.ghostty.savedState", "~/Library/WebKit/com.mitchellh.ghostty", ] end