1 cask "logitech-presentation" do
3 sha256 "407f36bd6a5805726a54295e8e5b4bd31db99efe1d99015eb9db5fcd71402eb7"
5 url "https://download01.logi.com/web/ftp/pub/techsupport/presentation/LogiPresentation_#{version.major_minor_patch}.dmg",
6 verified: "download01.logi.com/web/ftp/pub/techsupport/presentation/"
7 name "Logitech Presentation"
8 desc "Presentation software"
9 homepage "https://support.logitech.com/en_au/product/spotlight-presentation-remote"
12 url "https://support.logi.com/api/v2/help_center/en-us/articles.json?label_names=webcontent=productdownload,websoftware=ee425650-8e0b-11e9-8db1-773d1e87aeb4"
13 regex(/href=.*?LogiPresentation[._-]v?(\d+(?:\.\d+)+)\.dmg/i)
14 strategy :json do |json, regex|
15 json["articles"]&.map do |article|
16 match = article["body"]&.match(regex)
25 depends_on macos: ">= :sierra"
27 installer manual: "LogiPresentation Installer.app"
29 uninstall signal: ["KILL", "LogiPresentation"],
30 login_item: "LogiPresentation",
31 delete: "/Applications/Logitech Presentation"
33 zap trash: "/Library/Application Support/Logitech.localized/Logitech Presentation.localiz"