This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 447
/
logi-options-plus.rb
53 lines (46 loc) · 1.62 KB
/
logi-options-plus.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cask "logi-options-plus" do
version "1.30.0.7349"
sha256 :no_check
url "https://download01.logi.com/web/ftp/pub/techsupport/optionsplus/logioptionsplus_installer.zip",
verified: "download01.logi.com/web/ftp/pub/techsupport/optionsplus/"
name "Logitech Options+"
desc "Software for Logitech devices"
homepage "https://www.logitech.com/en-us/software/logi-options-plus.html"
livecheck do
url :url
strategy :extract_plist do |versions|
versions.values.map(&:version).compact.first
end
end
auto_updates true
depends_on macos: ">= :catalina"
installer manual: "logioptionsplus_installer.app"
uninstall launchctl: [
"com.logi.cp-dev-mgr",
"com.logi.optionsplus",
"com.logi.optionsplus.agent",
"com.logi.optionsplus.updater",
],
quit: [
"com.logi.cp-dev-mgr",
"com.logi.optionsplus",
"com.logi.optionsplus.agent",
"com.logi.optionsplus.updater",
],
delete: [
"/Applications/logioptionsplus.app",
"/Library/LaunchAgents/com.logi.optionsplus.plist",
"/Library/LaunchDaemons/com.logi.optionsplus.updater.plist",
]
zap trash: [
"/Users/Shared/LogiOptionsPlus",
"~/Library/Application Support/LogiOptionsPlus",
"~/Library/Application Support/logioptionsplus",
"~/Library/Preferences/com.logi.cp-dev-mgr.plist",
"~/Library/Preferences/com.logi.optionsplus.plist",
"~/Library/Saved Application State/com.logi.optionsplus.savedState",
]
caveats do
reboot
end
end