excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / silnite.rb
blob3f38e39dd383dba701b845674508b04d518f4bc7
1 cask "silnite" do
2   version "10,2023.07"
3   sha256 "2cf56007a9e0f4d420cc137afeb6811ded0918d74d49552e684218b7127cc976"
5   url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/silnite#{version.csv.first}.zip",
6       verified: "eclecticlightdotcom.files.wordpress.com/"
7   name "silnite"
8   desc "Checks EFI firmware and security data file updates"
9   homepage "https://eclecticlight.co/lockrattler-systhist/"
11   livecheck do
12     url "https://eclecticlight.co/downloads/"
13     regex(%r{href=.*?/(\d+)/(\d+)/silnite[^"' >]*?\.zip[^>]*?>\s*silnite\s+v?(\d+(?:\.\d+)*)[^a-z)]}i)
14     strategy :page_match do |page, regex|
15       page.scan(regex).map { |match| "#{match[2]},#{match[0]}.#{match[1]}" }
16     end
17   end
19   depends_on macos: ">= :big_sur"
21   pkg "silnite#{version.csv.first}/silniteInstaller.pkg"
23   uninstall pkgutil: "co.eclecticlight.pkg.silniteInstaller"
25   # No zap stanza required
26 end