cask "ryver" do
  version "1.3.3"
  sha256 "8186020f264ef51c94430321710c74f3043b34aabb08be29fafe1e7b4aa1c3ae"

  url "https://downloads.ryver.com/mac/ryver-#{version}.zip"
  name "Ryver"
  desc "Team communication and collaboration software"
  homepage "https://ryver.com/"

  livecheck do
    url "https://downloads.ryver.com/mac/stable"
    strategy :header_match
  end

  disable! date: "2026-09-01", because: :fails_gatekeeper_check

  depends_on :macos
  container nested: "Ryver-#{version}.dmg"

  app "Ryver.app"

  zap trash: [
    "~/Library/Application Support/Ryver",
    "~/Library/Logs/Ryver",
    "~/Library/Preferences/Ryver.helper.plist",
    "~/Library/Preferences/Ryver.plist",
    "~/Library/Saved Application State/Ryver.savedState",
  ]

  caveats do
    requires_rosetta
  end
end
