cask "silhouette-studio" do version "4.5.815.001_M6R" sha256 "c44008ad2e470a8623456b82fd2b28b0a7799f7cbea7647751c3a4d69d8d6fe4" url "https://d62nvtdcnsm38.cloudfront.net/files/softwares/ss/SS_V#{version}.dmg", verified: "d62nvtdcnsm38.cloudfront.net/files/softwares/ss/" name "Silhouette Studio" desc "Design software for Silhouette cutting machines" homepage "https://www.silhouetteamerica.com/silhouette-studio" livecheck do url :homepage regex(/SS[._-]V?((?:\d+(?:\.\d+)+)[._-]M6R(?:[._-]\d+)?)\.dmg/i) end depends_on macos: ">= :monterey" app "Silhouette Studio.app" zap trash: [ "/Library/Application Support/com.aspexsoftware.Silhouette_Studio*", "~/Library/Application Support/com.aspexsoftware.Silhouette_Studio*", "~/Library/Preferences/com.aspexsoftware.Silhouette_Studio*", "~/Library/Preferences/com.silhouettesoftware*", "~/Library/Saved Application State/com.silhouettesoftware.Silhouette-Studio*", ] caveats do requires_rosetta end end