cask "zwift" do
  version "1.1.17,162624"
  sha256 :no_check

  url "https://cdn.zwift.com/app/ZwiftOSX.dmg"
  name "Zwift"
  desc "Indoor cycling game"
  homepage "https://www.zwift.com/"

  livecheck do
    url :url
    strategy :extract_plist
  end

  depends_on :macos

  pkg "ZwiftInstaller.pkg"

  uninstall quit:    "com.zwift.ZwiftLauncher",
            pkgutil: "com.zwift.ZwiftLauncher"

  zap trash: "~/Library/Application Support/Zwift"
end
