29 lines
1.1 KiB
Ruby
29 lines
1.1 KiB
Ruby
cask "silentknight" do
|
|
version "1.15,2020.11"
|
|
sha256 "cfab760bd693713d7f38aaac20809fe0327b41de799c94614595d88c05d6393c"
|
|
|
|
url "https://eclecticlightdotcom.files.wordpress.com/#{version.after_comma.major}/#{version.after_comma.minor}/silentknight#{version.before_comma.no_dots}.zip",
|
|
verified: "eclecticlightdotcom.files.wordpress.com/"
|
|
name "SilentKnight"
|
|
desc "Automatically checks computer's security"
|
|
homepage "https://eclecticlight.co/lockrattler-systhist/"
|
|
|
|
livecheck do
|
|
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
|
|
strategy :page_match do |page|
|
|
match = page.match(%r{/(\d+)/(\d+)/silentknight(\d+)\.zip}i)
|
|
"#{match[3].split("", 2).join(".")},#{match[1]}.#{match[2]}"
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :el_capitan"
|
|
|
|
app "silentknight#{version.before_comma.no_dots}/SilentKnight.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Caches/co.eclecticlight.SilentKnight",
|
|
"~/Library/Preferences/co.eclecticlight.SilentKnight.plist",
|
|
"~/Library/Saved Application State/co.eclecticlight.SilentKnight.savedState",
|
|
]
|
|
end
|