Merge pull request #18762 from Homebrew/opencore-diagnostic
This commit is contained in:
commit
bc31f731ea
@ -128,6 +128,20 @@ module OS
|
|||||||
EOS
|
EOS
|
||||||
end
|
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
|
def check_xcode_up_to_date
|
||||||
return unless MacOS::Xcode.outdated?
|
return unless MacOS::Xcode.outdated?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user