excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / singlecrystal.rb
blob1f400d0d67b87ea524bfef6384c6341e314aeb88
1 cask "singlecrystal" do
2   version "5.1.1"
3   sha256 :no_check
5   url "https://crystalmaker.com/downloads/singlecrystal#{version.major}_mac.zip"
6   name "SingleCrystal"
7   desc "Crystal diffraction software"
8   homepage "https://crystalmaker.com/singlecrystal/index.html"
10   livecheck do
11     url "https://crystalmaker.com/support/updates/VersionData-SCM.xml"
12     strategy :xml do |xml|
13       xml.get_elements("//version").map { |item| item.attributes["number"] }
14     end
15   end
17   depends_on macos: ">= :mojave"
19   app "SingleCrystal.app"
21   zap trash: [
22     "~/Library/Application Scripts/com.crystalmaker.singlecrystal.v#{version.major}",
23     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.crystalmaker.singlecrystal.v#{version.major}.sfl*",
24     "~/Library/Containers/com.crystalmaker.singlecrystal.v#{version.major}",
25   ]
26 end