cask "logitune" do version "3.7.187" sha256 :no_check url "https://software.vc.logitech.com/downloads/tune/LogiTuneInstaller.dmg" name "LogiTune" desc "Optimise your webcam, headset, and Logi Dock for video meetings" homepage "https://www.logitech.com/en-us/video-collaboration/software/logi-tune-software.html" livecheck do url "https://prosupport.logi.com/api/v2/help_center/de/articles.json?label_names=webcontent=productdownload,webproduct=bad331b5-1feb-11ea-ae1b-a561623ae541" regex(/Software[\s-]Version:.*?v?(\d+(?:\.\d+)+)/i) strategy :json do |json, regex| json["articles"]&.map { |item| item["body"][regex, 1] } end end auto_updates true depends_on macos: ">= :catalina" installer manual: "LogiTuneInstaller.app" uninstall delete: [ "/Applications/LogiTune.app", "/Library/LaunchAgents/com.logitech.logitune.launcher.plist", "/Library/LaunchDaemons/com.logitech.LogiRightSight.plist", ] zap trash: [ "/Users/Shared/logitune", "/Users/Shared/LogiTuneInstallerStarted.txt", "~/Library/Application Support/logitune", "~/Library/Preferences/com.logitech.logitune.plist", "~/Library/Saved Application State/com.logitech.logituneInstaller.savedState", ] end