Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / k / kitty@nightly.rb
blobec7ec46592e18ef0d227055f32344c3593a1ff4a
1 cask "kitty@nightly" do
2   version :latest
3   sha256 :no_check
5   url "https://github.com/kovidgoyal/kitty/releases/download/nightly/kitty-nightly.dmg"
6   name "kitty-nightly"
7   desc "GPU-based terminal emulator"
8   homepage "https://github.com/kovidgoyal/kitty"
10   conflicts_with cask: "kitty"
11   depends_on macos: ">= :big_sur"
13   app "kitty.app"
14   # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
15   shimscript = "#{staged_path}/kitty.wrapper.sh"
16   binary shimscript, target: "kitty"
18   preflight do
19     File.write shimscript, <<~EOS
20       #!/bin/sh
21       exec '#{appdir}/kitty.app/Contents/MacOS/kitty' "$@"
22     EOS
23   end
25   zap trash: [
26     "~/.config/kitty",
27     "~/Library/Caches/kitty",
28     "~/Library/Preferences/kitty",
29     "~/Library/Preferences/net.kovidgoyal.kitty.plist",
30     "~/Library/Saved Application State/net.kovidgoyal.kitty.savedState",
31   ]
32 end