mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
maria: discontinued
The GitHub repository for `maria` was archived on 2023-04-13, so this sets the cask as discontinued. The most recent release was on 2017-01-21 (though there were a couple of subsequent version tags in 2017/2018 that didn't get a release), so it's fair to say this probably isn't being developed anymore.
This commit is contained in:
+4
-18
@@ -7,23 +7,9 @@ cask "maria" do
|
||||
desc "App/widget for aria2 download tool"
|
||||
homepage "https://github.com/shincurry/Maria"
|
||||
|
||||
livecheck do
|
||||
url "https://github.com/shincurry/Maria/releases/latest"
|
||||
regex(%r{href=.*?/Maria_v?(\d+(?:\.\d+)*)_build(.*?)\.dmg}i)
|
||||
strategy :header_match do |headers, regex|
|
||||
next if headers["location"].blank?
|
||||
|
||||
# Identify the latest tag from the response's `location` header
|
||||
latest_tag = File.basename(headers["location"])
|
||||
next if latest_tag.blank?
|
||||
|
||||
# Fetch the assets list HTML for the latest tag and match within it
|
||||
assets_page = Homebrew::Livecheck::Strategy.page_content(
|
||||
@url.sub(%r{/releases/?.+}, "/releases/expanded_assets/#{latest_tag}"),
|
||||
)
|
||||
assets_page[:content]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
|
||||
end
|
||||
end
|
||||
|
||||
app "Maria.app"
|
||||
|
||||
caveats do
|
||||
discontinued
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user