mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 23:46:56 +00:00
Merge pull request #12836 from carlocab/rosetta-cask-caveat
cask/dsl/caveats: add `:requires_rosetta`
This commit is contained in:
@@ -127,6 +127,17 @@ module Cask
|
||||
end
|
||||
end
|
||||
|
||||
caveat :requires_rosetta do
|
||||
next unless Hardware::CPU.arm?
|
||||
|
||||
<<~EOS
|
||||
#{@cask} is built for Intel macOS and so requires Rosetta 2 to be installed.
|
||||
You can install Rosetta 2 with:
|
||||
softwareupdate --install-rosetta --agree-to-license
|
||||
Note that it is very difficult to remove Rosetta 2 once it is installed.
|
||||
EOS
|
||||
end
|
||||
|
||||
caveat :logout do
|
||||
<<~EOS
|
||||
You must log out and log back in for the installation of #{@cask} to take effect.
|
||||
|
||||
Reference in New Issue
Block a user