homebrew-cask/Casks/crystalmaker.rb

25 lines
826 B
Ruby

cask "crystalmaker" do
version "10.8.2"
sha256 :no_check
url "https://crystalmaker.com/downloads/crystalmaker_mac.zip"
name "CrystalMaker"
desc "Visualize crystal and molecular structures"
homepage "https://crystalmaker.com/index.html"
livecheck do
url "https://crystalmaker.com/support/updates/VersionData-CMM.xml"
regex(/<version[^>]+?number=["']?v?(\d+(?:\.\d+)+)["']?[^>]*?>/i)
end
depends_on macos: ">= :sierra"
app "CrystalMaker.app"
zap trash: [
"~/Library/Application Scripts/com.crystalmaker.crystalmaker.v#{version.major}",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.crystalmaker.crystalmaker.v#{version.major}.sfl2",
"~/Library/Containers/com.crystalmaker.crystalmaker.v#{version.major}",
]
end