Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / k / krisp.rb
blobea54be6471f0b1b978b70a781fa502b2e0f0025c
1 cask "krisp" do
2   arch arm: "arm64", intel: "x64"
3   livecheck_arch = on_arch_conditional arm: "arm", intel: "64"
5   version "2.51.3"
6   sha256 arm:   "a47e636cc922bd33e8de2e7f78d4897c09ece0fe679977d78e5808436ea6784d",
7          intel: "f44fa6d4edab6d4f4c6ce1c58ea9171c6c1f1fbe0ae750824af0e4770de74819"
9   url "https://cdn.krisp.ai/mp/mn/#{version.major_minor}/mac/Krisp_#{version}_#{arch}.pkg"
10   name "Krisp"
11   desc "Noise cancelling application"
12   homepage "https://krisp.ai/"
14   livecheck do
15     url "https://api.krisp.ai/v2/download/mac?package=package_#{livecheck_arch}"
16     regex(%r{/Krisp[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.pkg}i)
17     strategy :header_match
18   end
20   auto_updates true
21   depends_on macos: ">= :mojave"
23   pkg "krisp_#{version}_#{arch}.pkg"
25   uninstall launchctl: [
26               "ai.krisp.krispMac*",
27               "krisp",
28             ],
29             quit:      "ai.krisp.krispMac",
30             pkgutil:   "ai.krisp.krispMac*",
31             delete:    "/Applications/krisp.app"
33   zap trash: [
34     "~/Library/Application Scripts/ai.krisp.krispMac.LaunchHelper",
35     "~/Library/Application Support/ai.krisp.krispMac",
36     "~/Library/Caches/ai.krisp.krispMac",
37     "~/Library/Containers/ai.krisp.krispMac.LaunchHelper",
38     "~/Library/HTTPStorages/ai.krisp.krispMac.*",
39     "~/Library/LaunchAgents/ai.krisp.krispMac.cameraAssistant.plist",
40     "~/Library/Preferences/ai.krisp.krispMac.plist",
41   ]
42 end