Clean up leftovers

This commit is contained in:
Mykola Grymalyuk
2020-11-30 21:37:00 -07:00
parent 78d6176707
commit fad6ae251a
5 changed files with 27 additions and 11 deletions
+6 -1
View File
@@ -263,6 +263,7 @@ def ListDiskutil():
DiskMenu = True
while DiskMenu:
os.system('clear')
print("Loading diskutil...(This may take some time)")
diskList = subprocess.Popen(["diskutil", "list"], stdout=subprocess.PIPE).communicate()[0]
print(diskList)
ChosenDisk = raw_input('Please select the disk you want to install OpenCore to(ie. disk1): ')
@@ -281,5 +282,9 @@ def MoveOpenCore():
rmtree("/Volumes/EFI/EFI")
if os.path.exists(Versions.opencore_path_done):
copy_tree(Versions.opencore_path_done, efiVol)
copy(Versions.icon_path, efiVol)
print("OpenCore transfer complete")
print("")
print("")
def MountOpenCore():
subprocess.Popen((r"sudo diskutil mount $(nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | sed 's/.*GPT,\([^,]*\),.*/\1/')").split())
+5 -1
View File
@@ -62,4 +62,8 @@ opencore_path_done = os.path.join(current_path, "Build-Folder/" "OpenCore-v%s" %
build_path = os.path.join(current_path, r'Build-Folder/')
# Tools
macserial_path = os.path.join(current_path, "payloads/" "Tools")
macserial_path = os.path.join(current_path, "payloads/" "Tools")
# Icons
icon_path = os.path.join(current_path, "payloads/Icon/" ".VolumeIcon.icns")