Skip to content

Commit

Permalink
Merge pull request #196746 from Homebrew/update-shadow-bot
Browse files Browse the repository at this point in the history
shadow-bot: disable
  • Loading branch information
daeho-ro authored Dec 30, 2024
2 parents a5629c2 + 47d97e5 commit 44535a7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Casks/s/shadow-bot.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cask "shadow-bot" do
arch arm: "-arm64"
livecheck_query = on_arch_conditional arm: "arm64", intel: "intel"

version "1.9.7"
sha256 arm: "1f376878a3c16f080f42f77edee8b9c6a3cb5f52ca4aafdc0797537b339186ab",
Expand All @@ -12,16 +11,7 @@
desc "Application for robotic process automation"
homepage "https://www.yingdao.com/"

livecheck do
url "https://api.yingdao.com/api/v1/sys/download/client?os=mac&arch=#{livecheck_query}"
regex(/ShadowBot[._-]v?(\d+(?:\.\d+)+)#{arch}\.dmg/i)
strategy :json do |json, regex|
match = json["data"]&.match(regex)
next if match.blank?

match[1]
end
end
disable! date: "2024-12-30", because: "download artifact behind signed url"

depends_on macos: ">= :high_sierra"

Expand Down

0 comments on commit 44535a7

Please sign in to comment.