cask "3dgenceslicer" do version "3.5.1,4.0" sha256 "8b1e89b1883e00119b319698e1fc302e749e08217aa6831a1ba38516aa83ac40" url "https://cloud.3dgence.com/downloads/slicer/3DGenceSlicer-#{version.csv.second}-(v#{version.csv.first}).dmg" name "3DGence Slicer" desc "Prepare files for 3D printing based on CAD models for 3DGence printers" homepage "https://3dgence.com/" livecheck do url "https://support.3dgence.com/software.html" regex(/3DGence\s+SLICER\s+v?(\d+(?:\.\d+)+)\s+\((?:version\s+|v)?(\d+(?:\.\d+)+)\)\s+-\s+system\s+MacOS/im) strategy :page_match do |page, regex| page.scan(regex).map do |match| "#{match[1]},#{match[0]}" end end end app "3DGence Slicer #{version.csv.second}.app" zap trash: [ "~/Library/Caches/3DGence Slicer", "~/Library/Preferences/com.3dgence.slicer.3DGence Slicer.plist", "~/Library/Saved Application State/com.3dgence.slicer.savedState", ], rmdir: "~/Documents/3DGence Slicer" caveats do requires_rosetta end end