homebrew-cask/Casks/p/pitch.rb

27 lines
869 B
Ruby

cask "pitch" do
version "2.15.0,stable.3,6491577"
sha256 "63ac08277e900a674ff4357aac0bc17024016a08dc212371e2f6be6257a60486"
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