mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 13:50:00 +10:00
main.py: Fix conversion
This commit is contained in:
@@ -96,7 +96,7 @@ class tui_disk_installation:
|
|||||||
logging.info(f"- Mounting partition: {full_disk_identifier}")
|
logging.info(f"- Mounting partition: {full_disk_identifier}")
|
||||||
if self.constants.detected_os >= os_data.os_data.el_capitan and not self.constants.recovery_status:
|
if self.constants.detected_os >= os_data.os_data.el_capitan and not self.constants.recovery_status:
|
||||||
try:
|
try:
|
||||||
applescript.AppleScript(f'''do shell script "diskutil mount {full_disk_identifier}" with prompt "OpenCore Legacy Patcher needs administrator privileges to mount your EFI." with administrator privileges without altering line endings''').run()
|
applescript.AppleScript(f'''do shell script "diskutil mount {full_disk_identifier}" with prompt "OpenCore Legacy Patcher needs administrator privileges to mount this volume." with administrator privileges without altering line endings''').run()
|
||||||
except applescript.ScriptError as e:
|
except applescript.ScriptError as e:
|
||||||
if "User canceled" in str(e):
|
if "User canceled" in str(e):
|
||||||
logging.info("- Mount cancelled by user")
|
logging.info("- Mount cancelled by user")
|
||||||
|
|||||||
+2
-2
@@ -73,8 +73,8 @@ class OpenCoreLegacyPatcher:
|
|||||||
launcher_script = __file__
|
launcher_script = __file__
|
||||||
if "main.py" in launcher_script:
|
if "main.py" in launcher_script:
|
||||||
launcher_script = launcher_script.replace("/resources/main.py", "/OpenCore-Patcher-GUI.command")
|
launcher_script = launcher_script.replace("/resources/main.py", "/OpenCore-Patcher-GUI.command")
|
||||||
self.constants.launcher_binary = str(launcher_binary)
|
self.constants.launcher_binary = launcher_binary
|
||||||
self.constants.launcher_script = str(launcher_script)
|
self.constants.launcher_script = launcher_script
|
||||||
|
|
||||||
# Initialize working directory
|
# Initialize working directory
|
||||||
self.constants.unpack_thread = threading.Thread(target=reroute_payloads.RoutePayloadDiskImage, args=(self.constants,))
|
self.constants.unpack_thread = threading.Thread(target=reroute_payloads.RoutePayloadDiskImage, args=(self.constants,))
|
||||||
|
|||||||
Reference in New Issue
Block a user