1 cask "sunlogincontrol" do
2 arch arm: "arm64", intel: "x86_64"
3 livecheck_id = on_arch_conditional arm: "211", intel: "17"
6 sha256 arm: "030de0ef4a4e8e08afa8bc2f02bb70e1476eae1e33d3a119b7381ba3ec96f3c7",
7 intel: "0af5ae83eda37356fe2eafce26ccda5b4ba6ee180057fdf77b716990b5947fb9"
9 url "https://down.oray.com/sunlogin/mac/SunloginRemote_#{version}_#{arch}.dmg"
10 name "SunloginControl"
12 desc "Target component of remote desktop control and monitoring tool"
13 homepage "https://sunlogin.oray.com/"
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
21 pkg "SunloginRemote.pkg"
23 uninstall quit: "com.oray.remote",
24 pkgutil: "com.oray.remote"
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",