cask "bino" do
  version "1.6.6"
  sha256 "31f0c7590511c9c5bfb92f488de82565bdc4c945b934a1e8cd40a110beb49fd5"

  url "http://devernay.free.fr/hacks/bino/Bino-#{version}-OSX-Mavericks-GPL.zip",
      verified: "devernay.free.fr/hacks/bino/"
  name "Bino"
  desc "Video player"
  homepage "https://bino3d.org/"

  livecheck do
    url "http://devernay.free.fr/hacks/bino/"
    regex(/href=.*?Bino[._-](\d+(?:\.\d+)+)[._-]OSX[._-]Mavericks[._-]GPL\.zip/i)
  end

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

  depends_on :macos

  app "Bino.app"

  zap trash: [
    "~/Library/Preferences/org.bino3d.Bino.plist",
    "~/Library/Saved Application State/org.bino3d.savedState",
  ]

  caveats do
    requires_rosetta
  end
end
