cask "tinderbox" do version "10.2.0" sha256 "98092b23951a105a225745c2aebe9ef7d779caad06ad7cbea8d7a4965ad400b7" url "https://www.eastgate.com/download/tbx#{version.no_dots}.dmg" name "Tinderbox" desc "Tool to take, visualise and analyze notes" homepage "https://eastgate.com/Tinderbox/" livecheck do url :homepage regex(/>Download.*?Tinderbox\s+v?(\d+(?:\.\d+)+)[<\s]/im) end depends_on macos: ">= :big_sur" app "Tinderbox #{version.major}.app" zap trash: [ "~/Library/Application Support/Tinderbox", "~/Library/Caches/com.eastgate.Tinderbox-#{version.major}", "~/Library/Preferences/com.eastgate.Tinderbox-#{version.major}.plist", "~/Library/Preferences/Tinderbox™ Preferences", "~/Library/Saved Application State/com.eastgate.Tinderbox-#{version.major}.savedState", "~/Library/WebKit/com.eastgate.Tinderbox-#{version.major}", ] end