Skip to content

Commit

Permalink
Merge pull request #18762 from Homebrew/opencore-diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab authored Nov 13, 2024
2 parents 7981369 + 2c20e3b commit bc31f73
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Library/Homebrew/extend/os/mac/diagnostic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,20 @@ def check_for_unsupported_macos
EOS
end

def check_for_opencore
has_opencore =
File.exist?("/Library/PrivilegedHelperTools/com.dortania.opencore-legacy-patcher.privileged-helper")
has_opencore ||= File.exist?("/Library/Application Support/Dortania/OpenCore-Patcher.app")
has_opencore ||= MacOS.pkgutil_info("com.dortania.opencore-legacy-patcher").present?
return unless has_opencore

<<~EOS
You have installed macOS using OpenCore Legacy Patcher.
We do not provide support for this configuration.
#{please_create_pull_requests}
EOS
end

def check_xcode_up_to_date
return unless MacOS::Xcode.outdated?

Expand Down

0 comments on commit bc31f73

Please sign in to comment.