cask "metashape" do version "2.2.1" sha256 "6b34821d1ef038de95317f872d4bbee6be6c71c3d62a209319a7b06bafd1e54b" url "https://download.agisoft.com/metashape_#{version.dots_to_underscores}.dmg" name "Agisoft Metashape Standard Edition" desc "Process digital images and generate 3D spatial data" homepage "https://www.agisoft.com/" livecheck do url "https://www.agisoft.com/downloads/installer/" regex(/Metashape\s*(\d+(?:\.\d+)+)/i) end app "Metashape.app" zap trash: [ "~/Library/Preferences/com.agisoft.Metashape.plist", "~/Library/Saved Application State/com.agisoft.metashape.standard.savedState", ] end