cask "ricoh-theta" do
  version "3.20.0,4"
  sha256 :no_check

  url "https://theta360-statics.s3.amazonaws.com/app/viewer/RICOH%20THETA.dmg",
      verified: "theta360-statics.s3.amazonaws.com/app/viewer/"
  name "RICOH THETA"
  desc "Companion software for 360 degree cameras"
  homepage "https://theta360.com/en/support/download/pcmac/"

  livecheck do
    url :url
    strategy :extract_plist
  end

  app "RICOH THETA.app"

  zap trash: [
    "~/Library/Application Support/RicohTheta",
    "~/Library/Logs/RicohTheta",
    "~/Library/Preferences/com.ricoh.thetasphericalviewer.plist",
    "~/Library/Saved Application State/com.ricoh.thetasphericalviewer.savedState",
  ]
end
