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/"
8 desc "Checks EFI firmware and security data file updates"
9 homepage "https://eclecticlight.co/lockrattler-systhist/"
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]}" }
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