homebrew-cask/Casks/s/signet.rb

29 lines
1.0 KiB
Ruby

cask "signet" do
version "1.3,2020.09"
sha256 "ea48e77577e46848d5a3861782ddaaf05a725e6a4f14802ee29bc20bd88aeb50"
url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/#{token}#{version.csv.first.no_dots}.zip",
verified: "eclecticlightdotcom.files.wordpress.com/"
name "Signet"
desc "Scans and checks bundle signatures"
homepage "https://eclecticlight.co/taccy-signet-precize-alifix-utiutility-alisma/"
livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/signet(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end
app "#{token}#{version.csv.first.no_dots}/Signet.app"
zap trash: [
"~/Library/Caches/co.eclecticlight.Signet",
"~/Library/Preferences/co.eclecticlight.Signet.plist",
"~/Library/Saved Application State/co.eclecticlight.Signet.savedState",
]
end