Skip to content

Commit

Permalink
Merge pull request #169211 from mikesmithgh/kitty-add-kitten-to-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane committed Mar 15, 2024
2 parents 069ac9a + 26b85ff commit 9cd0d10
Showing 1 changed file with 10 additions and 3 deletions.
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

0 comments on commit 9cd0d10

Please sign in to comment.