phinze/homebrew-cask

View on GitHub
Casks/r/ricoh-theta.rb

Summary

Maintainability
A
45 mins
Test Coverage
cask "ricoh-theta" do
  version "3.20.0"
  sha256 "78c215e3f44fe4c9422ba018ed21dae5323f3d6907c7c275d349436f51109696"

  url "https://theta360-statics.s3.amazonaws.com/app/viewer/SphericalViewerUpdate/RICOH%20THETA.#{version}.app.zip",
      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 "https://theta360-statics.s3.amazonaws.com/app/viewer/SphericalViewerUpdate/latest-mac.yml"
    strategy :electron_builder
  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",
  ]

  caveats do
    requires_rosetta
  end
end