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

crystalviewer 11.1.0 (new cask) #172222

Merged
merged 5 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
29 changes: 29 additions & 0 deletions Casks/c/crystalviewer.rb
@@ -0,0 +1,29 @@
cask "crystalviewer" do
version "11.1.0"
sha256 :no_check

url "https://crystalmaker.com/downloads/crystalviewer#{version.major}_mac.zip"
name "CrystalViewer"
desc "Interactive galleries of 3D crystal & molecular structures"
homepage "https://crystalmaker.com/crystalviewer/index.html"

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

depends_on macos: ">= :mojave"

app "CrystalViewer.app"

zap trash: [
"~/Library/Application Scripts/com.crystalmaker.crystalviewer.v#{version.major}",
"~/Library/Application Scripts/group.com.crystalmaker.bundle.v#{version.major}",
"~/Library/Application Scripts/group.com.crystalmaker.crystalmaker.v#{version.major}",
"~/Library/Containers/com.crystalmaker.crystalviewer.v#{version.major}",
"~/Library/Group Containers/group.com.crystalmaker.bundle.v#{version.major}",
"~/Library/Group Containers/group.com.crystalmaker.crystalmaker.v#{version.major}",
]
end