Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Casks/k/kitty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,21 @@

app "kitty.app"
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/kitty.wrapper.sh"
binary shimscript, target: "kitty"
kitty_shimscript = "#{staged_path}/kitty.wrapper.sh"
binary kitty_shimscript, target: "kitty"
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
kitten_shimscript = "#{staged_path}/kitten.wrapper.sh"
binary kitten_shimscript, target: "kitten"

preflight do
File.write shimscript, <<~EOS
File.write kitty_shimscript, <<~EOS
#!/bin/sh
exec '#{appdir}/kitty.app/Contents/MacOS/kitty' "$@"
EOS
File.write kitten_shimscript, <<~EOS
#!/bin/sh
exec '#{appdir}/kitty.app/Contents/MacOS/kitten' "$@"
EOS
end

zap trash: [
Expand Down