Files

43 lines
1.3 KiB
Ruby
Raw Permalink Normal View History

2023-09-16 22:02:57 +08:00
cask "cloudnet" do
2023-12-05 12:57:15 +08:00
version "1.36.2.15"
sha256 "a17302efdb84888950c08b994c533973a2a9794c6f389b92619a730959e9a6af"
2023-09-16 22:02:57 +08:00
2023-09-17 22:19:19 +08:00
url "https://pkgs.cloudnet.world/stable/macos/CloudNet_v#{version}.dmg"
2023-09-16 22:02:57 +08:00
name "CloudNet for Mac client"
2023-09-18 16:59:49 +08:00
desc "Enterprise-level meshVPN cloud service"
2023-09-16 22:02:57 +08:00
homepage "https://cloudnet.world/"
livecheck do
url "https://pkgs.cloudnet.world/stable/appcast.xml"
2023-09-18 16:59:49 +08:00
strategy :sparkle
2023-09-16 22:02:57 +08:00
end
auto_updates true
depends_on macos: ">= :catalina"
app "CloudNet.app"
installer script: {
2023-09-17 22:19:19 +08:00
executable: "CloudNet.app/Contents/Resources/cnet",
2023-09-16 22:02:57 +08:00
args: ["install"],
sudo: true,
}
2023-09-17 22:19:19 +08:00
uninstall quit: "world.cloudnet.client",
2023-09-16 22:02:57 +08:00
launchctl: "world.cloudnet.client.cloudnetd",
script: {
2023-09-17 22:19:19 +08:00
executable: "CloudNet.app/Contents/Resources/cnet",
args: ["uninstall"],
2023-09-16 22:02:57 +08:00
sudo: true,
2023-09-17 22:19:19 +08:00
},
2023-09-18 16:59:49 +08:00
delete: [
"/Applications/CloudNet.app",
"/Library/LaunchDaemons/world.cloudnet.client.cloudnetd.plist",
]
2023-09-16 22:02:57 +08:00
zap trash: [
"~/Library/Containers/world.cloudnet.client",
"~/Library/Group Containers/$(TeamIdentifierPrefix)world.cloudnet.client",
2023-09-18 16:59:49 +08:00
"~/Library/Preferences/world.cloudnet.client.cloudnetd.plist",
2023-09-16 22:02:57 +08:00
]
end