cask/dsl/caveats: allow for simulated system checks in rosetta caveat

This commit is contained in:
Bevan Kay 2024-07-09 15:42:38 +10:00
parent 216ae9d0a1
commit a77a8ca564
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -141,7 +141,7 @@ module Cask
end
caveat :requires_rosetta do
next unless Hardware::CPU.arm?
next if !Hardware::CPU.arm? && Homebrew::SimulateSystem.current_arch != :arm
<<~EOS
#{@cask} is built for Intel macOS and so requires Rosetta 2 to be installed.