mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
32 lines
1.1 KiB
Ruby
32 lines
1.1 KiB
Ruby
cask "mints" do
|
|
version "1.15,2023.09"
|
|
sha256 "13edf0976470c67bcc3023d1472fea7c6cab8fd9d8277573d2cfcc06711b661a"
|
|
|
|
url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/mints#{version.csv.first.no_dots}.zip",
|
|
verified: "eclecticlightdotcom.files.wordpress.com/"
|
|
name "Mints"
|
|
desc "Logging tool suite"
|
|
homepage "https://eclecticlight.co/mints-a-multifunction-utility/"
|
|
|
|
livecheck do
|
|
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
|
|
regex(%r{/(\d+)/(\d+)/mints(\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
|
|
|
|
depends_on macos: ">= :sierra"
|
|
|
|
app "mints#{version.csv.first.no_dots}/Mints.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Caches/co.eclecticlight.Mints",
|
|
"~/Library/HTTPStorages/co.eclecticlight.Mints",
|
|
"~/Library/Preferences/co.eclecticlight.Mints.plist",
|
|
"~/Library/Saved Application State/co.eclecticlight.Mints.savedState",
|
|
]
|
|
end
|