mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-15 03:46:28 +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
|
||||
- Backend changes:
|
||||
- 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
|
||||
- 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"]
|
||||
if not any(x in sys.argv for x in ignore_args):
|
||||
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)
|
||||
|
||||
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}")
|
||||
return False
|
||||
|
||||
logging.info(f"- Directory ready: {path}")
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user