cask "reunion" do version "14.0.0,250702unr" sha256 "fb40f2b244b1af9436a17f770531dc7b8a68cc847b467257a0eeaa7602bb8693" url "https://store.leisterpro.com/updates/reunion#{version.major}/Reunion-#{version.csv.first.dots_to_hyphens}-#{version.csv.second}.zip" name "Reunion" desc "Genealogy (family tree) app" homepage "https://www.leisterpro.com/" livecheck do url "https://store.leisterpro.com/updates/reunion#{version.major}/appcast.xml" regex(%r{/Reunion-(\d+(?:-\d+)*)-(\d+.*?)\.zip}i) strategy :sparkle do |item, regex| item.url.scan(regex).map do |match| "#{match[0].tr("-", ".")},#{match[1]}" end end end no_autobump! because: :requires_manual_review auto_updates true app "Reunion #{version.major}.app" zap trash: [ "~/Documents/Reunion Files", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.leisterpro.reunion#{version.major}.sfl*", "~/Library/Application Support/Reunion", "~/Library/Caches/com.leisterpro.reunion#{version.major}", "~/Library/Preferences/com.leisterpro.reunion#{version.major}.plist", "~/Library/Preferences/com.leisterpro.reunion.version.plist", "~/Library/Preferences/Reunion Preferences", ] end