2 arch arm: "arm64", intel: "x64"
3 livecheck_arch = on_arch_conditional arm: "arm", intel: "64"
6 sha256 arm: "a47e636cc922bd33e8de2e7f78d4897c09ece0fe679977d78e5808436ea6784d",
7 intel: "f44fa6d4edab6d4f4c6ce1c58ea9171c6c1f1fbe0ae750824af0e4770de74819"
9 url "https://cdn.krisp.ai/mp/mn/#{version.major_minor}/mac/Krisp_#{version}_#{arch}.pkg"
11 desc "Noise cancelling application"
12 homepage "https://krisp.ai/"
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
21 depends_on macos: ">= :mojave"
23 pkg "krisp_#{version}_#{arch}.pkg"
25 uninstall launchctl: [
29 quit: "ai.krisp.krispMac",
30 pkgutil: "ai.krisp.krispMac*",
31 delete: "/Applications/krisp.app"
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",