From a8fb9dca7713256d86d744952bf64dd7ff3ca58d Mon Sep 17 00:00:00 2001 From: Callum Macdonald Date: Wed, 9 Mar 2022 23:53:52 +0100 Subject: [PATCH] Add pingnoo version 2021.04.30 (#120000) * Add pingnoo version 2021.04.30 * Use the brew standard version regex. * Bugfix. Missed trailing part of regex. * Add zap stanza. Props @neutric --- Casks/pingnoo.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Casks/pingnoo.rb diff --git a/Casks/pingnoo.rb b/Casks/pingnoo.rb new file mode 100644 index 0000000000..d13e9283f4 --- /dev/null +++ b/Casks/pingnoo.rb @@ -0,0 +1,25 @@ +cask "pingnoo" do + version "2021.04.30-develop" + sha256 "827db036cdc0535bac5b9a1fcf9de4bdaea54ecd5bded702c127303229f10378" + + url "https://github.com/nedrysoft/pingnoo/releases/download/#{version}/Pingnoo.#{version}.universal.dmg", + verified: "github.com/nedrysoft/pingnoo/" + name "pingnoo" + desc "Open-source cross-platform traceroute/ping analyser" + homepage "https://www.pingnoo.com/" + + livecheck do + url :url + strategy :github_latest + regex(%r{href=.*?/tag/v?(\d+(?:\.\d+)+-\w+)["' >]}i) + end + + depends_on macos: ">= :high_sierra" + + app "Pingnoo.app" + + zap trash: [ + "~/Library/Application Support/Nedrysoft", + "~/Library/Saved Application State/com.nedrysoft.pingnoo.savedState", + ] +end