cask "tinderbox" do version "10.0.2" sha256 "75f6aac8caa18dfe99eb9f1e06953d6a30e4a8b27be772dda6c10886a3bafa53" 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: ">= :high_sierra" 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