excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / l / logitech-presentation.rb
blob2ff24a33f0f46d636336d94fcc73a68850c6058d
1 cask "logitech-presentation" do
2   version "2.10.276"
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"
11   livecheck do
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)
17         next if match.blank?
19         match[1]
20       end
21     end
22   end
24   auto_updates true
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"
34 end