cask "chatty" do version "0.25" sha256 "ff5eae45cc1f8aea1f62823b5340d51845506428317469e992e44880c70a54b6" url "https://github.com/chatty/chatty/releases/download/v#{version}/Chatty_#{version}.zip", verified: "github.com/chatty/chatty/" name "Chatty" desc "Twitch chat client" homepage "https://chatty.github.io/" livecheck do url :url strategy :github_latest end suite "Chatty" preflight do # There is no sub-folder in the ZIP; the root *is* the folder FileUtils.mv(staged_path.children, staged_path.join("Chatty").tap(&:mkpath)) end zap trash: "~/.chatty" caveats do depends_on_java "7+" end end