homebrew-cask/Casks/pitch.rb

27 lines
870 B
Ruby

cask "pitch" do
version "1.116.1,stable.2,5302034"
sha256 "f14edcf98861b56d8c517d8e54e00cf62ae7210e5a393f9ced0bc6e4afb0b63f"
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