Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / n / nperf.rb
blob5389cdb6bd3afb8556548c23ff204bd7caebf8ef
1 cask "nperf" do
2   arch arm: "arm64", intel: "x86_64"
4   version "1.12.3"
5   sha256 arm:   "4b2d260a02a1d5567badc2ea15de06c03be80deeb8ef74bb155c5b222b8d4d37",
6          intel: "4aed59b0718a88037a2ab3413e22b10605face4b114010bb3acfb69e83b1f47a"
8   url "https://repo.nperf.com/macos/nperf/nPerf-#{arch}-#{version}.pkg"
9   name "nPerf"
10   desc "Internet speed test utility"
11   homepage "https://www.nperf.com/"
13   livecheck do
14     url "https://app.nperf.com/getMacApp?arch=#{arch}"
15     strategy :header_match
16   end
18   pkg "nPerf-#{arch}-#{version}.pkg"
20   uninstall pkgutil: "com.nperf.nPerf"
22   zap trash: [
23     "~/Library/Application Support/nPerf",
24     "~/Library/Saved Application State/com.nperf.nPerf.savedState",
25   ]
26 end