mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
main.py: Wait for unpack thread in CI
This commit is contained in:
+2
-1
@@ -57,7 +57,8 @@ class OpenCoreLegacyPatcher:
|
|||||||
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
|
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
|
||||||
print("- Rerouting payloads location")
|
print("- Rerouting payloads location")
|
||||||
self.constants.payload_path = sys._MEIPASS / Path("payloads")
|
self.constants.payload_path = sys._MEIPASS / Path("payloads")
|
||||||
print("- Waiting for payloads to unpack...")
|
ignore_args = ignore_args.pop(0)
|
||||||
|
if not any(x in sys.argv for x in ignore_args):
|
||||||
while self.constants.unpack_thread.is_alive():
|
while self.constants.unpack_thread.is_alive():
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
arguments.arguments().parse_arguments(self.constants)
|
arguments.arguments().parse_arguments(self.constants)
|
||||||
|
|||||||
Reference in New Issue
Block a user