cask "transmission-remote-gui" do
  version "5.18.0"
  sha256 "fe32f0cdd5c8f9777bace0eceb92d6b269a2b20210f4cc0552112861ddead759"

  url "https://github.com/transmission-remote-gui/transgui/releases/download/v#{version}/transgui-#{version}.dmg"
  name "Transmission Remote GUI"
  homepage "https://github.com/transmission-remote-gui/transgui"

  app "Transmission Remote GUI.app"

  uninstall quit: "com.transgui"

  zap trash: [
    "~/.config/Transmission Remote GUI/",
    "~/Library/Preferences/com.transgui.plist",
    "~/Library/Saved Application State/com.transgui.savedState",
  ]
end
