mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
Update BuildOpenCore.py
This commit is contained in:
@@ -277,14 +277,15 @@ def MoveOpenCore():
|
|||||||
print("")
|
print("")
|
||||||
print("Coping OpenCore onto Volumes/EFI")
|
print("Coping OpenCore onto Volumes/EFI")
|
||||||
efiVol = "/Volumes/EFI"
|
efiVol = "/Volumes/EFI"
|
||||||
if os.path.exists("/Volumes/EFI/EFI"):
|
if os.path.exists(efiVol):
|
||||||
print("Cleaning EFI folder")
|
if os.path.exists("/Volumes/EFI/EFI"):
|
||||||
rmtree("/Volumes/EFI/EFI")
|
print("Cleaning EFI folder")
|
||||||
if os.path.exists(Versions.opencore_path_done):
|
rmtree("/Volumes/EFI/EFI")
|
||||||
copy_tree(Versions.opencore_path_done, efiVol)
|
if os.path.exists(Versions.opencore_path_done):
|
||||||
copy(Versions.icon_path, efiVol)
|
copy_tree(Versions.opencore_path_done, efiVol)
|
||||||
print("OpenCore transfer complete")
|
copy(Versions.icon_path, efiVol)
|
||||||
print("")
|
print("OpenCore transfer complete")
|
||||||
|
print("")
|
||||||
|
|
||||||
def MountOpenCore():
|
def MountOpenCore():
|
||||||
subprocess.Popen((r"sudo diskutil mount $(nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | sed 's/.*GPT,\([^,]*\),.*/\1/')").split())
|
subprocess.Popen((r"sudo diskutil mount $(nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | sed 's/.*GPT,\([^,]*\),.*/\1/')").split())
|
||||||
Reference in New Issue
Block a user