homebrew-cask/Casks/tuple.rb

40 lines
1.3 KiB
Ruby

cask "tuple" do
version "0.92.2,2021-11-12,54306c8f"
sha256 "99e8aa3e59b35c7fa798e06f3895a41d80784679cd3a880a3c39d74a3ed53be4"
url "https://d32ifkf9k9ezcg.cloudfront.net/production/sparkle/tuple-#{version.tr(",", "-")}.zip",
verified: "d32ifkf9k9ezcg.cloudfront.net/"
name "Tuple"
desc "Remote pair programming app"
homepage "https://tuple.app/"
livecheck do
url "https://d32ifkf9k9ezcg.cloudfront.net/production/sparkle/appcast.xml"
strategy :sparkle do |item|
match = item.version.match(/^v?(\d+(?:\.\d+)+)[._-](\d+(?:-\d+)+)[._-](\h+)$/i)
next if match.blank?
"#{match[1]},#{match[2]},#{match[3]}"
end
end
auto_updates true
depends_on macos: ">= :mojave"
app "Tuple.app"
uninstall quit: "app.tuple.app",
launchctl: "app.tuple.app-LaunchAtLoginHelper"
zap trash: [
"~/Library/Application Scripts/app.tuple.app-LaunchAtLoginHelper",
"~/Library/Application Support/app.tuple.app",
"~/Library/Caches/app.tuple.app",
"~/Library/Caches/com.crashlytics.data/app.tuple.app",
"~/Library/Caches/io.fabric.sdk.mac.data/app.tuple.app",
"~/Library/Containers/app.tuple.app-LaunchAtLoginHelper",
"~/Library/Preferences/app.tuple.app.plist",
"~/Library/WebKit/app.tuple.app",
]
end