From bbed0b49210b21dad2a78e7f6f6815a7b9a4dc5f Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Tue, 13 Apr 2021 14:38:10 -0600 Subject: [PATCH] Update Build.py Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/145 --- Resources/Build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Resources/Build.py b/Resources/Build.py index a187011b1..8b6fdf661 100644 --- a/Resources/Build.py +++ b/Resources/Build.py @@ -708,9 +708,11 @@ Please build OpenCore first!""" print("- Adding Internal Drive icon") shutil.copy(self.constants.icon_path_internal, mount_path) print("- Cleaning install location") - subprocess.run(f"dot_clean '{mount_path}'".split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) + subprocess.run(f"dot_clean {mount_path}".split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) + print("- Unmounting EFI partition") + subprocess.run(f"diskutil umount {mount_path}".split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) print("- OpenCore transfer complete") print("\nPress [Enter] to continue.\n") input() else: - utilities.TUIOnlyPrint(["Copying OpenCore"], "Press [Enter] to go back.\n", ["EFI failed to mount!", "Please report this to the devs at GitHub."]).start() + Utilities.TUIOnlyPrint(["Copying OpenCore"], "Press [Enter] to go back.\n", ["EFI failed to mount!", "Please report this to the devs at GitHub."]).start()