33 lines
1.0 KiB
Ruby
33 lines
1.0 KiB
Ruby
cask "the-unarchiver" do
|
|
version "4.3.5,139,1652457131"
|
|
sha256 "4602bf08296747614fdcabfa68f420836dec9c8ebe9286a93b4c509a1e567c62"
|
|
|
|
url "https://dl.devmate.com/com.macpaw.site.theunarchiver/#{version.csv.second}/#{version.csv.third}/TheUnarchiver-#{version.csv.second}.zip",
|
|
verified: "devmate.com/com.macpaw.site.theunarchiver/"
|
|
name "The Unarchiver"
|
|
desc "Unpacks archive files"
|
|
homepage "https://theunarchiver.com/"
|
|
|
|
livecheck do
|
|
url "https://updates.devmate.com/com.macpaw.site.theunarchiver.xml"
|
|
regex(%r{/(\d+)/TheUnarchiver\d*?[_-]v?(\d+(?:\.\d+)*)\.(?:dmg|zip)}i)
|
|
strategy :sparkle do |item, regex|
|
|
match = item.url.match(regex)
|
|
next if match.blank?
|
|
|
|
"#{item.short_version},#{match[2]},#{match[1]}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
app "The Unarchiver.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Caches/cx.c3.theunarchiver",
|
|
"~/Library/Cookies/cx.c3.theunarchiver.binarycookies",
|
|
"~/Library/Preferences/cx.c3.theunarchiver.plist",
|
|
"~/Library/Saved Application State/cx.c3.theunarchiver.savedState",
|
|
]
|
|
end
|