homebrew-cask/Casks/tuple.rb

40 lines
1.3 KiB
Ruby

cask "tuple" do
version "0.93.0,2022-01-06,81f1eeba"
sha256 "24a45783ccf411ec7f8306f7172da5b3bd7c1ad4dd7243445ece6ce70056d001"
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: ">= :catalina"
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