phinze/homebrew-cask

View on GitHub
Casks/c/chatty.rb

Summary

Maintainability
A
0 mins
Test Coverage
cask "chatty" do
  version "0.26"
  sha256 "376f573cf8d088da9a05ebd28e45e61f7370f8781b0e2e46511b7652df3a7850"

  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