homebrew-cask/Casks/silnite.rb

27 lines
880 B
Ruby

cask "silnite" do
version "9,2022.10"
sha256 "2622c7f4b382bf830f8dc884d4cb2a6cb676212b9b212c6c0dd87324e753f7c0"
url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/silnite#{version.csv.first}.zip",
verified: "eclecticlightdotcom.files.wordpress.com/"
name "silnite"
desc "Checks EFI firmware and security data file updates"
homepage "https://eclecticlight.co/lockrattler-systhist/"
livecheck do
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/silnite[._-]?v?(\d+(?:\.\d+)*\w?)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2]},#{match[0]}.#{match[1]}"
end
end
end
depends_on macos: ">= :el_capitan"
pkg "silnite#{version.csv.first}/silniteInstaller.pkg"
uninstall pkgutil: "co.eclecticlight.pkg.silniteInstaller"
end