3 livecheck_query = on_arch_conditional arm: "arm64", intel: "intel"
6 sha256 arm: "1f376878a3c16f080f42f77edee8b9c6a3cb5f52ca4aafdc0797537b339186ab",
7 intel: "f24359d0fe7abd6a00c883fbd3eb11dece09b95d7ad50525301a42f90b15c18f"
9 url "https://winrobot-pub-a-cos.yingdao.com/client/install/ShadowBot-#{version}#{arch}.dmg"
12 desc "Application for robotic process automation"
13 homepage "https://www.yingdao.com/"
16 url "https://api.yingdao.com/api/v1/sys/download/client?os=mac&arch=#{livecheck_query}"
17 regex(/ShadowBot[._-]v?(\d+(?:\.\d+)+)#{arch}\.dmg/i)
18 strategy :json do |json, regex|
19 match = json["data"]&.match(regex)
26 depends_on macos: ">= :high_sierra"
31 "~/Library/Application Support/影刀",
32 "~/Library/Preferences/com.yingdao.yd.plist",
33 "~/Library/Saved Application State/com.yingdao.yd.savedState",