Skip to content

Commit

Permalink
Merge pull request #188016 from Homebrew/bfe
Browse files Browse the repository at this point in the history
  • Loading branch information
krehel authored Oct 10, 2024
2 parents 1a7a775 + 9f4584d commit 5b66f4e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Casks/b/bot-framework-emulator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@
desc "Test and debug chat bots built with the Bot Framework SDK"
homepage "https://github.com/Microsoft/BotFramework-Emulator"

# Not every GitHub release provides a file for macOS, so we check multiple
# recent releases instead of only the "latest" release.
livecheck do
url :url
regex(/^botframework[._-]emulator.*?v?(\d+(?:\.\d+)+)[._-]mac\.(?:dmg|pkg|zip)$/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"] || release["prerelease"]

release["assets"]&.map do |asset|
match = asset["name"]&.match(regex)
next if match.blank?

match[1]
end
end.flatten
end
end

auto_updates true

app "Bot Framework Emulator.app"
Expand Down

0 comments on commit 5b66f4e

Please sign in to comment.