excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / shadowsocksx-ng.rb
blob5f906397c9e95958b5b13f9fc46dad8c67ac23f1
1 cask "shadowsocksx-ng" do
2   version "1.10.3"
3   sha256 "a0bc48af636c796471b1156eae0b6ca7340fe51deffec384c409dac785f04c60"
5   url "https://github.com/shadowsocks/ShadowsocksX-NG/releases/download/v#{version}/ShadowsocksX-NG.dmg"
6   name "ShadowsocksX-NG"
7   desc "Tunneling proxy"
8   homepage "https://github.com/shadowsocks/ShadowsocksX-NG/"
10   conflicts_with cask: "shadowsocksx"
11   depends_on macos: ">= :sierra"
13   app "ShadowsocksX-NG.app"
15   uninstall launchctl: [
16               "com.qiuyuzhou.shadowsocksX-NG.http",
17               "com.qiuyuzhou.shadowsocksX-NG.kcptun",
18               "com.qiuyuzhou.ShadowsocksX-NG.LaunchHelper",
19               "com.qiuyuzhou.shadowsocksX-NG.local",
20             ],
21             quit:      "com.qiuyuzhou.ShadowsocksX-NG",
22             script:    {
23               executable: "#{appdir}/ShadowsocksX-NG.app/Contents/Resources/proxy_conf_helper",
24               args:       ["--mode", "off"],
25               sudo:       true,
26             },
27             delete:    "/Library/Application Support/ShadowsocksX-NG"
29   zap trash: [
30     "~/.ShadowsocksX-NG",
31     "~/Library/Application Support/ShadowsocksX-NG",
32     "~/Library/Caches/com.qiuyuzhou.ShadowsocksX-NG",
33     "~/Library/Preferences/com.qiuyuzhou.ShadowsocksX-NG.plist",
34   ]
35 end