homebrew-cask/Casks/maria.rb

22 lines
657 B
Ruby

cask "maria" do
version "1.2.6,1701213"
sha256 "49fdca9fb362b96d9e51a5663edc4a7f2d2e27e3f9d14ffcaea60fdb2a155e06"
url "https://github.com/shincurry/Maria/releases/download/v#{version.csv.first}/Maria_v#{version.csv.first}_build#{version.csv.second}.dmg"
name "Maria"
desc "App/widget for aria2 download tool"
homepage "https://github.com/shincurry/Maria"
livecheck do
url "https://github.com/shincurry/Maria/releases/latest"
strategy :page_match do |page|
match = page.match(%r{href=.*?/Maria_v?(\d+(?:\.\d+)*)_build(.*?)\.dmg}i)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
app "Maria.app"
end