excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / l / logitune.rb
blobfa41ca5e4a196c17e0423c08a1510e84915ceed5
1 cask "logitune" do
2   version "3.7.187"
3   sha256 :no_check
5   url "https://software.vc.logitech.com/downloads/tune/LogiTuneInstaller.dmg"
6   name "LogiTune"
7   desc "Optimise your webcam, headset, and Logi Dock for video meetings"
8   homepage "https://www.logitech.com/en-us/video-collaboration/software/logi-tune-software.html"
10   livecheck do
11     url "https://prosupport.logi.com/api/v2/help_center/de/articles.json?label_names=webcontent=productdownload,webproduct=bad331b5-1feb-11ea-ae1b-a561623ae541"
12     regex(/Software[\s-]Version:.*?v?(\d+(?:\.\d+)+)/i)
13     strategy :json do |json, regex|
14       json["articles"]&.map do |item|
15         match = item["body"]&.match(regex)
16         next if match.blank?
18         match[1]
19       end
20     end
21   end
23   auto_updates true
24   depends_on macos: ">= :catalina"
26   installer manual: "LogiTuneInstaller.app"
28   uninstall delete: [
29     "/Applications/LogiTune.app",
30     "/Library/LaunchAgents/com.logitech.logitune.launcher.plist",
31     "/Library/LaunchDaemons/com.logitech.LogiRightSight.plist",
32   ]
34   zap trash: [
35     "/Users/Shared/logitune",
36     "/Users/Shared/LogiTuneInstallerStarted.txt",
37     "~/Library/Application Support/logitune",
38     "~/Library/Preferences/com.logitech.logitune.plist",
39     "~/Library/Saved Application State/com.logitech.logituneInstaller.savedState",
40   ]
41 end