cask "kitty" do version "0.19.2" sha256 "31f2247f43bb7b635d75edb72aa4d576a5260a64bbb13e9aa01e005a060a8a75" url "https://github.com/kovidgoyal/kitty/releases/download/v#{version}/kitty-#{version}.dmg" appcast "https://github.com/kovidgoyal/kitty/releases.atom" name "kitty" desc "Cross-platform, fast, feature full, GPU based terminal emulator" homepage "https://github.com/kovidgoyal/kitty" depends_on macos: ">= :sierra" app "kitty.app" # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809) shimscript = "#{staged_path}/kitty.wrapper.sh" binary shimscript, target: "kitty" preflight do IO.write shimscript, <<~EOS #!/bin/sh exec '#{appdir}/kitty.app/Contents/MacOS/kitty' "$@" EOS end zap trash: [ "~/.config/kitty", "~/Library/Preferences/kitty", "~/Library/Saved Application State/net.kovidgoyal.kitty.savedState", ] end