Skip to content

Commit

Permalink
virtualbuddy 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane committed Sep 29, 2023
1 parent f0ef642 commit 9788061
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
20 changes: 17 additions & 3 deletions Casks/v/virtualbuddy.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
cask "virtualbuddy" do
version "1.2.2,10"
sha256 "953428b48ac48652edf8935a0d7f0042aaaa2f8ca7303f86add3ceaedfb9c1cf"
version "1.3,104"
sha256 "c05f6a29444ed5154efcc158eb687738299aaddf4840445592ac0d287986baae"

url "https://github.com/insidegui/VirtualBuddy/releases/download/#{version.csv.first}/VirtualBuddy_v#{version.csv.first}-#{version.csv.second}.dmg"
name "VirtualBuddy"
desc "Virtualization tool"
homepage "https://github.com/insidegui/VirtualBuddy"

livecheck do
skip "No reliable way to get version info"
url "https://github.com/insidegui/VirtualBuddy/releases/latest"
regex(/href=.*VirtualBuddy[._-]v?(\d+(?:\.\d+)+)[._-]((\d+))\.dmg/i)
strategy :header_match do |headers, regex|
next if headers["location"].blank?

# Identify the latest tag from the response's `location` header
latest_tag = File.basename(headers["location"])
next if latest_tag.blank?

# Fetch the assets list HTML for the latest tag and match within it
assets_page = Homebrew::Livecheck::Strategy.page_content(
@url.sub(%r{/releases/?.+}, "/releases/expanded_assets/#{latest_tag}"),
)
assets_page[:content]&.scan(regex)&.map { |match| "#{match[0]},#{match[1]}" }
end
end

conflicts_with cask: "homebrew/cask-versions/virtualbuddy-beta"
Expand Down
1 change: 0 additions & 1 deletion audit_exceptions/github_prerelease_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"strawberry-wallpaper": "all",
"themeengine": "all",
"universal-android-debloater": "all",
"virtualbuddy": "all",
"xit": "all",
"ytmdesktop-youtube-music": "all"
}

0 comments on commit 9788061

Please sign in to comment.