From b6c1f6ff6021551eb882984cac8ef23388b1d5ca Mon Sep 17 00:00:00 2001 From: Shivang Patel <30023891+shivangp76@users.noreply.github.com> Date: Tue, 24 Dec 2024 06:47:09 -0500 Subject: [PATCH] tpvirtual 3 (new cask) Co-authored-by: Klaus Hipp --- Casks/t/tpvirtual.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Casks/t/tpvirtual.rb diff --git a/Casks/t/tpvirtual.rb b/Casks/t/tpvirtual.rb new file mode 100644 index 000000000000..4bbdff534752 --- /dev/null +++ b/Casks/t/tpvirtual.rb @@ -0,0 +1,23 @@ +cask "tpvirtual" do + version "3" + sha256 "ed4126989c26c2d9b0e2b48ec454340eb3f50042797a5b4a201435d3cdf80e1f" + + url "https://virtual.trainingpeaks.com/TPVirtual-Installer_v#{version}.dmg" + name "TrainingPeaks Virtual" + desc "Indoor cycling game" + homepage "https://www.trainingpeaks.com/virtual/" + + livecheck do + url :homepage + regex(/href=.*?TPVirtual[._-]Installer[._-]v?(\d+(?:\.\d+)*)\.dmg/i) + end + + depends_on macos: ">= :high_sierra" + + app "TPVirtual-Launcher.app" + + zap trash: [ + "~/Library/Application Support/com.indievelo.client", + "~/Library/Application Support/com.indieVelo.launcher", + ] +end