forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunchcontrol.rb
53 lines (45 loc) · 1.83 KB
/
launchcontrol.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 "launchcontrol" do
on_catalina :or_older do
version "1.52.7"
sha256 "760edc3f3238ecbbc9f0c14b17ced9ac2a46c46a4ed8feec6bfb532fced37b7e"
livecheck do
skip "Legacy version"
end
end
on_big_sur :or_newer do
version "2.5.5"
sha256 "b022b524def133d807a5dd9a7799248bd4d5305c162dda386a9cd03436e63957"
livecheck do
url "https://www.soma-zone.com/LaunchControl/a/appcast-update-#{version.major}.xml"
strategy :sparkle, &:short_version
end
depends_on macos: ">= :big_sur"
end
url "https://www.soma-zone.com/download/files/LaunchControl-#{version}.tar.xz"
name "LaunchControl"
desc "Create, manage and debug system- and user services"
homepage "https://www.soma-zone.com/LaunchControl/"
auto_updates true
app "LaunchControl.app"
binary "#{appdir}/LaunchControl.app/Contents/MacOS/fdautil"
uninstall launchctl: "com.soma-zone.LaunchControl.Helper",
quit: [
"com.soma-zone.JobWatch",
"com.soma-zone.LaunchControl",
"com.soma-zone.LicenseWindow",
"com.soma-zone.QuickLaunch",
],
delete: "/Library/PrivilegedHelperTools/com.soma-zone.LaunchControl.Helper"
zap trash: [
"~/Library/Application Support/LaunchControl",
"~/Library/Caches/com.apple.helpd/Generated/com.soma-zone.LaunchControl.help*",
"~/Library/Caches/com.apple.helpd/Generated/LaunchControl Help*",
"~/Library/Caches/com.soma-zone.LaunchControl",
"~/Library/HTTPStorages/com.soma-zone.LaunchControl",
"~/Library/Logs/LaunchControl",
"~/Library/Preferences/com.soma-zone.LaunchControl.plist",
"~/Library/Preferences/com.soma-zone.LaunchControl.shared.plist",
"~/Library/Saved Application State/com.soma-zone.LaunchControl.savedState",
"~/Library/WebKit/com.soma-zone.LaunchControl",
]
end