excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / h / horos.rb
blob8da03ec3a8e6889449a66406c5cba7e23ea011c8
1 cask "horos" do
2   arch arm: "arm64"
4   on_arm do
5     version "4.0.1"
6     sha256 "16c6c4dee3f12138096781af438bcdf12baf6c0b63499ce110eb58600b85c4a3"
8     url "https://horosproject.org/horos-content/Horos_#{version}_#{arch}.dmg"
9   end
10   on_intel do
11     on_el_capitan :or_older do
12       version "2.0.2"
13       sha256 "5cc1d6c71c8ae643b4df4fecee93dbe3cfacbcffef52001a76a7683a2725ac08"
14     end
15     on_sierra :or_newer do
16       version "4.0.0"
17       sha256 "b0ea0ac8793ee1e343c815f5e2bfbeba01ea713181c2c66ad69b73fbed69a902"
18     end
20     url "https://horosproject.org/horos-content/Horos#{version}#{arch}.dmg"
21   end
23   name "Horos"
24   desc "Medical image viewer"
25   homepage "https://horosproject.org/"
27   livecheck do
28     url "https://horosproject.org/horos-content/"
29     regex(/href=.*?Horos[._-]?v?(\d+(?:.\d+)+)[._-]?#{arch}\.dmg/i)
30   end
32   app "Horos.app"
34   zap trash: [
35     "~/Library/Application Support/Horos",
36     "~/Library/Caches/org.horosproject.horos",
37     "~/Library/HTTPStorages/org.horosproject.horos",
38     "~/Library/Preferences/org.horosproject.horos.plist",
39     "~/Library/Saved Application State/org.horosproject.horos.savedState",
40   ]
41 end