excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / sunlogincontrol.rb
blob7f56290cdf807dbe642617e647fcd24a4c756dcc
1 cask "sunlogincontrol" do
2   arch arm: "arm64", intel: "x86_64"
3   livecheck_id = on_arch_conditional arm: "211", intel: "17"
5   version "6.1.0.62632"
6   sha256 arm:   "030de0ef4a4e8e08afa8bc2f02bb70e1476eae1e33d3a119b7381ba3ec96f3c7",
7          intel: "0af5ae83eda37356fe2eafce26ccda5b4ba6ee180057fdf77b716990b5947fb9"
9   url "https://down.oray.com/sunlogin/mac/SunloginRemote_#{version}_#{arch}.dmg"
10   name "SunloginControl"
11   name "向日葵控制端"
12   desc "Target component of remote desktop control and monitoring tool"
13   homepage "https://sunlogin.oray.com/"
15   livecheck do
16     url "https://sunlogin.oray.com/zh_CN/download/download?id=#{livecheck_id}"
17     regex(/SunloginRemote[._-]?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg/i)
18     strategy :header_match
19   end
21   pkg "SunloginRemote.pkg"
23   uninstall quit:    "com.oray.remote",
24             pkgutil: "com.oray.remote"
26   zap trash: [
27     "~/Library/Caches/com.oray.remote",
28     "~/Library/HTTPStorages/com.oray.remote.binarycookies",
29     "~/Library/Preferences/com.oray.remote.plist",
30     "~/Library/Saved Application State/com.oray.remote.savedState",
31     "~/Library/WebKit/com.oray.remote",
32     "~/Sunlogin",
33   ]
34 end