cask "juice" do
  version "2017.06.08170217"
  sha256 "ee308adbd3ee827c2735931844a10f0f779f8953204aeaacb0eb64705244b310"

  url "https://github.com/brianmichel/Juice/releases/download/builds%2Fbeta%2F#{version}/Juice-Beta-#{version}.dmg"
  name "Juice"
  desc "Make your battery information a bit more interesting"
  homepage "https://github.com/brianmichel/Juice"

  depends_on :macos

  app "Juice.app"

  zap trash: [
    "~/Library/Containers/com.bsm.macos.Juice",
    "~/Library/Containers/com.bsm.macos.JuiceHelper",
  ]

  caveats do
    requires_rosetta
  end
end
