3 sha256 "9cba678dc4330fbae3225fce65809fd2bea17eb4acee86b3ed6e1590d301db95"
5 url "https://updates.kaleidoscope.app/v#{version.major}/prod/Kaleidoscope-#{version.csv.first}-#{version.csv.second}.app.zip"
7 desc "Spot and merge differences in text and image files or folders"
8 homepage "https://kaleidoscope.app/"
11 url "https://updates.kaleidoscope.app/v#{version.major}/prod/appcast"
12 regex(/Kaleidoscope[._-]v?(\d+(?:\.\d+)+)[._-](\d+)\.app\.zip/i)
13 strategy :sparkle do |item, regex|
14 match = item.url.match(regex)
17 "#{match[1]},#{match[2]}"
22 conflicts_with cask: %w[
27 depends_on macos: ">= :ventura"
29 app "Kaleidoscope.app"
32 contents = "#{appdir}/Kaleidoscope.app/Contents"
33 system_command "#{contents}/Resources/Integration/scripts/install_ksdiff",
34 args: ["#{contents}/MacOS", "#{HOMEBREW_PREFIX}/bin"]
37 uninstall quit: "app.kaleidoscope.v#{version.major}",
38 pkgutil: "app.kaleidoscope.uninstall_ksdiff"
41 "~/Library/Application Support/app.kaleidoscope.v*",
42 "~/Library/Application Support/com.blackpixel.kaleidoscope",
43 "~/Library/Application Support/Kaleidoscope",
44 "~/Library/Caches/app.kaleidoscope.v*",
45 "~/Library/Caches/com.blackpixel.kaleidoscope",
46 "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.blackpixel.kaleidoscope",
47 "~/Library/Preferences/app.kaleidoscope.v*.plist",
48 "~/Library/Preferences/com.blackpixel.kaleidoscope.plist",
49 "~/Library/Saved Application State/app.kaleidoscope.v*.savedState",
50 "~/Library/Saved Application State/com.blackpixel.kaleidoscope.savedState",
51 "~/Library/WebKit/app.kaleidoscope.v*",