cask "metashapepro" do version "2.1.3" sha256 "9b36cbd7e37177af7b91cf2e3dddd2c3a5d73263b6f7ed5c678ac63f9bff590d" url "https://download.agisoft.com/metashape-pro_#{version.dots_to_underscores}.dmg" name "Agisoft Metashape Professional 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 "MetashapePro.app" zap trash: [ "~/Library/Preferences/com.agisoft.Metashape Pro.plist", "~/Library/Saved Application State/com.agisoft.metashape.professional.savedState", ] end