Skip to content

Commit

Permalink
vmware-fusion 12.1.2,17964953
Browse files Browse the repository at this point in the history
* Add vmware link for macOS 10.15
* Fix livecheck for catalina
* Update vmware-fusion.rb
* Update vmware-fusion.rb

Closes #128480.

Co-authored-by: Bevan Kay <[email protected]>
Signed-off-by: Bevan Kay <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
2 people authored and BrewTestBot committed Jul 26, 2022
1 parent f7183a2 commit 7756092
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions Casks/vmware-fusion.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
cask "vmware-fusion" do
version "12.2.4,20071091"
sha256 "0b0516f4d5f70e759ae08a40d2e14f487c0b66d84ee467e38972ad013e1f6c7f"
if MacOS.version <= :catalina
livecheck_folder = "core"
version "12.1.2,17964953"
sha256 "873049d4080168b56085c5b67be1d4eeb14debc0e6cf176dbd52c78518d0b883"

url "https://download3.vmware.com/software/fusion/file/VMware-Fusion-#{version.csv.first}-#{version.csv.second}.dmg"
else
livecheck_folder = "x86"
version "12.2.4,20071091"
sha256 "0b0516f4d5f70e759ae08a40d2e14f487c0b66d84ee467e38972ad013e1f6c7f"

url "https://download3.vmware.com/software/FUS-#{version.csv.first.no_dots}/VMware-Fusion-#{version.csv.first}-#{version.csv.second}_x86.dmg"
end

url "https://download3.vmware.com/software/FUS-#{version.csv.first.no_dots}/VMware-Fusion-#{version.csv.first}-#{version.csv.second}_x86.dmg"
name "VMware Fusion"
desc "Create, manage, and run virtual machines"
homepage "https://www.vmware.com/products/fusion.html"

livecheck do
url "https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml"
strategy :page_match do |page|
scan = page.scan(%r{fusion/(\d+(?:\.\d+)+)/(\d+)/x86}i)
scan.map { |v| "#{v[0]},#{v[1]}" }
regex(%r{fusion/(\d+(?:\.\d+)+)/(\d+)/#{livecheck_folder}}i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
end
end

auto_updates true
conflicts_with cask: "vmware-fusion-tech-preview"
depends_on macos: ">= :big_sur"
depends_on macos: ">= :catalina"

app "VMware Fusion.app"
binary "#{appdir}/VMware Fusion.app/Contents/Library/VMware OVF Tool/ovftool"
Expand Down

0 comments on commit 7756092

Please sign in to comment.