excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / shadowsocksx-ng-r.rb
blob23d9438731e4c0a0e19d8c1fcae03b4bac69bdea
1 cask "shadowsocksx-ng-r" do
2   version "1.4.4-r8-resigning"
3   sha256 "9353980f35f78a9d16951f28d036f5647a2f5a5c1a79f6480cc4b2852bc77e57"
5   url "https://github.com/qinyuhang/ShadowsocksX-NG-R/releases/download/#{version}/ShadowsocksX-NG-R8.dmg"
6   name "ShadowsocksX-NG-R"
7   desc "Next Generation of ShadowsocksX"
8   homepage "https://github.com/qinyuhang/ShadowsocksX-NG-R/"
10   conflicts_with cask: "shadowsocksx"
11   depends_on macos: ">= :el_capitan"
13   app "ShadowsocksX-NG-R8.app"
15   postflight do
16     system_command "#{appdir}/ShadowsocksX-NG-R8.app/Contents/Resources/install_helper.sh"
17   end
19   uninstall launchctl: [
20               "com.qiuyuzhou.shadowsocksX-NG.http",
21               "com.qiuyuzhou.shadowsocksX-NG.kcptun",
22               "com.qiuyuzhou.ShadowsocksX-NG.LaunchHelper",
23               "com.qiuyuzhou.shadowsocksX-NG.local",
24             ],
25             quit:      "com.qiuyuzhou.ShadowsocksX-NG",
26             script:    {
27               executable: "/Library/Application Support/ShadowsocksX-NG/proxy_conf_helper",
28               args:       ["--mode", "off"],
29             },
30             delete:    "/Library/Application Support/ShadowsocksX-NG"
32   zap trash: [
33     "~/.ShadowsocksX-NG",
34     "~/Library/Application Support/ShadowsocksX-NG",
35     "~/Library/Caches/com.qiuyuzhou.ShadowsocksX-NG",
36     "~/Library/Preferences/com.qiuyuzhou.ShadowsocksX-NG.plist",
37   ]
39   caveats do
40     requires_rosetta
41   end
42 end