mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 06:10:00 +10:00
main.py: Fix payload routing
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
- ex. "EFI" and additional FAT32 partitions on a single drive
|
- ex. "EFI" and additional FAT32 partitions on a single drive
|
||||||
- Backend changes:
|
- Backend changes:
|
||||||
- Call `setpgrp()` to prevent app from being killed if parent process is killed (ie. LaunchAgents)
|
- Call `setpgrp()` to prevent app from being killed if parent process is killed (ie. LaunchAgents)
|
||||||
|
- Resolve payloads path being mis-routed during CLI calls
|
||||||
|
|
||||||
## 0.6.6
|
## 0.6.6
|
||||||
- Implement option to disable ColorSync downgrade on HD 3000 Macs
|
- Implement option to disable ColorSync downgrade on HD 3000 Macs
|
||||||
|
|||||||
@@ -107,9 +107,6 @@ class OpenCoreLegacyPatcher:
|
|||||||
ignore_args = ["--auto_patch", "--gui_patch", "--gui_unpatch", "--update_installed"]
|
ignore_args = ["--auto_patch", "--gui_patch", "--gui_unpatch", "--update_installed"]
|
||||||
if not any(x in sys.argv for x in ignore_args):
|
if not any(x in sys.argv for x in ignore_args):
|
||||||
self.constants.current_path = Path.cwd()
|
self.constants.current_path = Path.cwd()
|
||||||
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
|
|
||||||
logging.info("- Rerouting payloads location")
|
|
||||||
self.constants.payload_path = sys._MEIPASS / Path("payloads")
|
|
||||||
ignore_args = ignore_args.pop(0)
|
ignore_args = ignore_args.pop(0)
|
||||||
|
|
||||||
if not any(x in sys.argv for x in ignore_args):
|
if not any(x in sys.argv for x in ignore_args):
|
||||||
|
|||||||
@@ -316,6 +316,7 @@ class DownloadObject:
|
|||||||
logging.error(f"- Error preparing working directory {path}: {self.error_msg}")
|
logging.error(f"- Error preparing working directory {path}: {self.error_msg}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
logging.info(f"- Directory ready: {path}")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user