mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
build.py: Add Electron Work-around
With 12.3/12.3.1, Apple broke Electron support when SIP is lowered. Unknown whether this is intended behavior or not, revisit with 12.4
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
- Avoids requiring toggling after first time
|
||||
- Streamline GUI relaunch for Root Patch/Unpatch
|
||||
- On relaunch, GUI starts patching immediately (previously user would need to re-nagivate the menu)
|
||||
- Resolve Electron Crashing with SIP lowered on 12.3
|
||||
- Adds `ipc_control_port_options=0` boot argument
|
||||
- Unknown whether this is a "bug" or intentional from Apple, affects native Macs with SIP disabled
|
||||
|
||||
## 0.4.3
|
||||
- Increment Binaries:
|
||||
|
||||
@@ -861,9 +861,17 @@ class BuildOpenCore:
|
||||
if self.constants.custom_sip_value:
|
||||
print(f"- Setting SIP value to: {self.constants.custom_sip_value}")
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["csr-active-config"] = utilities.string_to_hex(self.constants.custom_sip_value.lstrip("0x"))
|
||||
# Work-around 12.3 bug where Electron apps no longer launch with SIP lowered
|
||||
# Unknown whether this is intended behavior or not, revisit with 12.4
|
||||
print("- Adding ipc_control_port_options=0 to boot-args")
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " ipc_control_port_options=0"
|
||||
elif self.constants.sip_status is False:
|
||||
print("- Set SIP to allow Root Volume patching")
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["csr-active-config"] = binascii.unhexlify("02080000")
|
||||
# Work-around 12.3 bug where Electron apps no longer launch with SIP lowered
|
||||
# Unknown whether this is intended behavior or not, revisit with 12.4
|
||||
print("- Adding ipc_control_port_options=0 to boot-args")
|
||||
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " ipc_control_port_options=0"
|
||||
# if self.constants.amfi_status is False:
|
||||
# print("- Disabling AMFI")
|
||||
# self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " amfi_get_out_of_my_way=1"
|
||||
|
||||
Reference in New Issue
Block a user