Skip to content

Commit

Permalink
Merge pull request #172225 from singularitti/singlecrystal
Browse files Browse the repository at this point in the history
  • Loading branch information
bevanjkay authored Apr 28, 2024
2 parents d0b1f58 + 2554333 commit 6134641
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Casks/s/singlecrystal.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cask "singlecrystal" do
version "5.0.0"
sha256 :no_check

url "https://crystalmaker.com/downloads/singlecrystal#{version.major}_mac.zip"
name "SingleCrystal"
desc "Crystal diffraction software"
homepage "https://crystalmaker.com/singlecrystal/index.html"

livecheck do
url "https://crystalmaker.com/support/updates/VersionData-SCM.xml"
strategy :xml do |xml|
xml.get_elements("//version").map { |item| item.attributes["number"] }
end
end

depends_on macos: ">= :mojave"

app "SingleCrystal.app"

zap trash: [
"~/Library/Application Scripts/com.crystalmaker.singlecrystal.v#{version.major}",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.crystalmaker.singlecrystal.v#{version.major}.sfl*",
"~/Library/Containers/com.crystalmaker.singlecrystal.v#{version.major}",
]
end

0 comments on commit 6134641

Please sign in to comment.