cask "silkie" do
  version "0.49.2-silkie20261012.1"
  sha256 "1f70d5c8046951d4e30f4cd9675905334e1b22a298d681679b901677304dc951"

  url "https://brew.goblinreactor.com/casks/silkie-#{version}.zip"
  name "silkie"
  desc "Fork of the kitty terminal with pen, touch, HDR, wide gamut and vector protocol extensions"
  homepage "https://silkie.goblinreactor.com/"

  depends_on arch: :arm64
  depends_on macos: :tahoe

  app "silkie.app"
  binary "#{appdir}/silkie.app/Contents/MacOS/kitty", target: "silkie"
  binary "#{appdir}/silkie.app/Contents/MacOS/kitten", target: "silkie-kitten"

  caveats <<~EOS
    silkie is kitty with protocol extensions and reads the same ~/.config/kitty/kitty.conf.
    Start it as silkie; inside it the kitten command is on PATH, from other shells use silkie-kitten.
    It installs alongside kitty and does not replace it.
    This release is ad-hoc signed and is not Apple-notarized.
    Documentation and protocol specifications: https://silkie.goblinreactor.com/
  EOS
end
