22 lines
678 B
Ruby
22 lines
678 B
Ruby
cask "quickhash" do
|
|
version "3.3.1,2258"
|
|
sha256 "9540ade4b01e99d6e0e1cb42e7ef169c75a334ab4bceebe4befed8f400cfe65f"
|
|
|
|
url "https://www.quickhash-gui.org/download/quickhash-gui-v#{version.csv.first.dots_to_hyphens}-apple-osx/?wpdmdl=#{version.csv.second}"
|
|
name "Quickhash"
|
|
desc "Data hashing tool"
|
|
homepage "https://www.quickhash-gui.org/"
|
|
|
|
livecheck do
|
|
url "https://www.quickhash-gui.org/downloads/"
|
|
strategy :page_match do |page|
|
|
match = page.match(%r{/quickhash[._-](?:gui[._-])?v?(\d+(?:-\d+)+)[._-]apple[._-]osx/\?wpdmdl=(\d+)}i)
|
|
next if match.blank?
|
|
|
|
"#{match[1].tr("-", ".")},#{match[2]}"
|
|
end
|
|
end
|
|
|
|
app "Quickhash-GUI.app"
|
|
end
|