homebrew-cask/Casks/chatty.rb

29 lines
657 B
Ruby

cask "chatty" do
version "0.15"
sha256 "2c98913cf3eb91180a82bad0bb3c155324f235d1649efd9bc21519c77c5d7f48"
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