This script is for OpenCore only, it needs an existing and sane configuration of OpenCore, the main aim of this script is to make updating EFI less of a chore.
bash <(curl -sL --proto-redir -all,https https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/main/Scripts/install_oc.sh)
If for some reason, you want to use a custom EFI(that follow the upstream formats) or GitHub, you can force it with:
# Force URL prompt
CUSTOM_EFI_URL=1 bash <(curl -sL --proto-redir -all,https https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/main/Scripts/install_oc.sh)
# Fetch patch's and EFI release from custom repo
REPO_NAME='daliansky' REPO_BRANCH='main' bash <(curl -sL --proto-redir -all,https https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/main/Scripts/install_oc.sh)
- Automatically detect and download EFI for CML/KBL model.
- Interactive and colorful log.
- Smart backup that checks the content with diff.
- 0xE2 and DVMT/FrameBuffer detection.
- Bluetooth detection.
- PlatformInfo/Serial detection.
- BootArgs interactive diff.
- SIP interactive diff.
- Kext/SSDT interactive diff.
- Validation with
ocvalidate
and custom check for missing SSDT/Kext file. - Automatic installation.
- Custom patch support.
- Ask for user interaction when new/unknown kexts is found.
- Thanks to Acidanthera for providing OpenCorePkg and many useful Kext's.
- Thanks to stevezhengshiqi for the script review/advices and the old install script.
- Thanks to Rehabman for mount_efi.sh.
- Thanks to Menchen for creating this script.