krisp: update livecheck

This commit is contained in:
Sam Ford 2024-03-22 16:56:22 -04:00
parent e4b0d99778
commit 886f23c0fd
No known key found for this signature in database
GPG Key ID: 7AF5CBEE1DD6F76D
1 changed files with 2 additions and 7 deletions

View File

@ -13,13 +13,8 @@ cask "krisp" do
livecheck do
url "https://download.krisp.ai/mac?package=package_#{livecheck_arch}"
regex(%r{/Krisp[._-](\d+(?:\.\d+)+)[._-]#{arch}\.pkg}i)
strategy :header_match do |headers, regex|
match = headers["location"]&.match(regex)
next if match.blank?
match[1]
end
regex(%r{/Krisp[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.pkg}i)
strategy :header_match
end
auto_updates true