excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / r / reunion.rb
blob56172c3c34f167a21916e26553bcf355c13d99ce
1 cask "reunion" do
2   version "14.0.0,241014unr"
3   sha256 "531e3d375e3496b75276e415bf5321dafba711e9c0246a0eb2b0d3e07daa0588"
5   url "https://store.leisterpro.com/updates/reunion#{version.major}/Reunion-#{version.csv.first.dots_to_hyphens}-#{version.csv.second}.zip"
6   name "Reunion"
7   desc "Genealogy (family tree) app"
8   homepage "https://www.leisterpro.com/"
10   livecheck do
11     url "https://store.leisterpro.com/updates/reunion#{version.major}/appcast.xml"
12     regex(%r{/Reunion-(\d+(?:-\d+)*)-(\d+.*?)\.zip}i)
13     strategy :sparkle do |item, regex|
14       item.url.scan(regex).map do |match|
15         "#{match[0].tr("-", ".")},#{match[1]}"
16       end
17     end
18   end
20   app "Reunion #{version.major}.app"
22   zap trash: [
23     "~/Documents/Reunion Files",
24     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.leisterpro.reunion#{version.major}.sfl*",
25     "~/Library/Application Support/Reunion",
26     "~/Library/Caches/com.leisterpro.reunion#{version.major}",
27     "~/Library/Preferences/com.leisterpro.reunion#{version.major}.plist",
28     "~/Library/Preferences/com.leisterpro.reunion.version.plist",
29     "~/Library/Preferences/Reunion Preferences",
30   ]
31 end