/
screens-connect.rb
37 lines (31 loc) 路 1.24 KB
/
screens-connect.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
cask "screens-connect" do
version "4.12.3,21688"
sha256 "0fa1194511fbffc8174091fa7d74a236907f2ae6a5e5f19eb5a51fdd762b1552"
url "https://updates.edovia.com/com.edovia.screens.connect.mac/ScreensConnect_#{version.csv.first}b#{version.csv.second}.zip"
name "Screens Connect"
desc "Remote desktop software"
homepage "https://edovia.com/en/screens-connect/"
livecheck do
url "https://updates.edovia.com/com.edovia.screens.connect.mac/appcast.xml"
strategy :sparkle
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Screens Connect.app"
# Uninstall script can fail when trying to remove legacy PKGIDS
# Original discussion: https://github.com/Homebrew/homebrew-cask/pull/8833
uninstall quit: "com.edovia.Screens-Connect",
launchctl: [
"com.edovia.Screens-Connect.launcher",
"com.edovia.screens.connect",
],
script: {
executable: "#{appdir}/Screens Connect.app/Contents/Resources/sc-uninstaller.tool",
must_succeed: false,
sudo: true,
}
zap trash: [
"~/Library/Preferences/com.edovia.Screens-Connect.plist",
"~/Library/Preferences/com.edovia.ScreensConnect.Shared.plist",
]
end