cask "chatty" do version "0.27" sha256 "392bdf38a9210c22755441efb0cb4ad4d4e20f081e38456ce47e461eac0941ff" 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 no_autobump! because: :requires_manual_review 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