Files
homebrew-cask/Casks/p/pitch.rb
2023-12-05 15:35:37 +00:00

27 lines
868 B
Ruby

cask "pitch" do
version "2.3.1,stable.1,6238612"
sha256 "07abc586ecb95b68298d35b3b2b5d05b937b3e099a96cc01dc9e266dfb21a860"
url "https://desktop-app-builds.pitch.com/Pitch-#{version.csv.first}-#{version.csv.second}-ci#{version.csv.third}.dmg"
name "Pitch"
desc "Collaborative presentation software"
homepage "https://pitch.com/"
livecheck do
url "https://desktop-app-builds.pitch.com/latest-mac.yml"
regex(/Pitch[._-]v?(\d+(?:\.\d+)+)-([^-]+)-ci(\d+)\.dmg/i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match.first},#{match.second},#{match.third}" }
end
end
app "Pitch.app"
zap trash: [
"~/Library/Application Support/Pitch",
"~/Library/Logs/Pitch",
"~/Library/Preferences/io.pitch.pitch-macos.plist",
"~/Library/Saved Application State/io.pitch.pitch-macos.savedState",
]
end