homebrew-cask/Casks/horos.rb

26 lines
747 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cask "horos" do
if MacOS.version <= :yosemite
version "1.1.7"
sha256 "d15e02d7678e0f41ad12910176307aeb6312e62d7386051bfe5a261a7feb004a"
elsif MacOS.version <= :el_capitan
version "2.0.2"
sha256 "5cc1d6c71c8ae643b4df4fecee93dbe3cfacbcffef52001a76a7683a2725ac08"
else
version "4.0.0"
sha256 "b0ea0ac8793ee1e343c815f5e2bfbeba01ea713181c2c66ad69b73fbed69a902"
end
url "https://horosproject.org/horos-content/Horos#{version}.dmg"
name "Horos Free, open medical image viewer"
desc "Medical image viewer"
homepage "https://horosproject.org/"
livecheck do
url "https://horosproject.org/horos-content/"
strategy :page_match
regex(/href=.*?Horos(\d+(?:.\d+)*)\.dmg/i)
end
app "Horos.app"
end