Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

singlecrystal: 5.0.0 (new cask) #172225

Merged
merged 3 commits into from Apr 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions Casks/s/singlecrystal.rb
@@ -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