cask "sparsity" do version "1.4,2025.07" sha256 "cd214e08c569ebe324e7fa6e972d63587cfa2ec62224e174ba100e0f0b301762" url "https://eclecticlight.co/wp-content/uploads/#{version.csv.second.major}/#{version.csv.second.minor}/#{token}#{version.csv.first.no_dots}.zip" name "Sparsity" desc "Create and find APFS sparse files" homepage "https://eclecticlight.co/taccy-signet-precize-alifix-utiutility-alisma/" livecheck do url :homepage regex(%r{href=.*?/(\d+)/(\d+)/sparsity[^"' >]*?\.zip[^>]*?>\s*sparsity\s+v?(\d+(?:\.\d+)*)[^a-z)]}i) strategy :page_match do |page, regex| page.scan(regex).map { |match| "#{match[2]},#{match[0]}.#{match[1]}" } end end no_autobump! because: :requires_manual_review depends_on macos: ">= :big_sur" app "sparsity#{version.csv.first.no_dots}/Sparsity.app" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.sparsity.sfl*", "~/Library/Preferences/co.eclecticlight.Sparsity.plist", "~/Library/Saved Application State/co.eclecticlight.Sparsity.savedState", ] end