cask "teeworlds" do
  version "0.7.5"
  sha256 "a79155c8bd7a0ce08457760f1ce37d8b7611f86717659bb3d90cd0e2dae5194b"

  url "https://downloads.teeworlds.com/teeworlds-#{version}-osx.dmg"
  name "Teeworlds"
  homepage "https://www.teeworlds.com/"

  livecheck do
    url "https://teeworlds.com/?page=downloads"
    regex(%r{href=.*?/teeworlds[._-](\d+(?:\.\d+)*)[._-]osx\.dmg}i)
  end

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

  depends_on :macos

  app "Teeworlds.app"
  app "Teeworlds Server.app"

  caveats do
    requires_rosetta
  end
end
