31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
cask "xattred" do
|
|
version "1.3,2020.08"
|
|
sha256 "606823107254a9a66af2c67d0e6aa25ae820d8dfba2be5427325d05c4a5482a7"
|
|
|
|
url "https://eclecticlightdotcom.files.wordpress.com/#{version.after_comma.major}/#{version.after_comma.minor}/xattred#{version.before_comma.no_dots}.zip",
|
|
verified: "eclecticlightdotcom.files.wordpress.com/"
|
|
name "xattred"
|
|
desc "Extended attribute editor"
|
|
homepage "https://eclecticlight.co/xattred-sandstrip-xattr-tools/"
|
|
|
|
livecheck do
|
|
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
|
|
strategy :page_match do |page|
|
|
match = page.match(%r{/(\d+)/(\d+)/xattred(\d+)\.zip}i)
|
|
next if match.blank?
|
|
|
|
"#{match[3].split("", 2).join(".")},#{match[1]}.#{match[2]}"
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :el_capitan"
|
|
|
|
app "xattred#{version.before_comma.major}#{version.before_comma.minor}/xattred.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Caches/co.eclecticlight.xattred",
|
|
"~/Library/Preferences/co.eclecticlight.xattred.plist",
|
|
"~/Library/Saved Application State/co.eclecticlight.xattred.savedState",
|
|
]
|
|
end
|