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
+8 -8
View File
@@ -48,10 +48,6 @@ while MainMenu:
print(" 3. Change model") print(" 3. Change model")
print(" 4. Credits") print(" 4. Credits")
print(" 5. Exit") print(" 5. Exit")
macserialoutput = subprocess.Popen(["./payloads/tools/macserial", "-m", "MacBookAir6,1"], stdout=subprocess.PIPE).communicate()[0]
print(macserialoutput)
print("") print("")
MainMenu = raw_input('Please select an option: ') MainMenu = raw_input('Please select an option: ')
@@ -104,6 +100,7 @@ while MainMenu:
MainMenu=True MainMenu=True
else: else:
print("\n Not Valid Choice Try again") print("\n Not Valid Choice Try again")
OpenCoreBuilderMenu = True
elif MainMenu=="2": elif MainMenu=="2":
@@ -128,6 +125,7 @@ while MainMenu:
print("Found OpenCore in Build Folder") print("Found OpenCore in Build Folder")
BuildOpenCore.ListDiskutil() BuildOpenCore.ListDiskutil()
BuildOpenCore.MoveOpenCore() BuildOpenCore.MoveOpenCore()
else: else:
print("OpenCore folder missing!") print("OpenCore folder missing!")
print("Please build OpenCore first") print("Please build OpenCore first")
@@ -142,6 +140,7 @@ while MainMenu:
MainMenu=True MainMenu=True
else: else:
print("\n Not Valid Choice Try again") print("\n Not Valid Choice Try again")
OpenCoreInstallerMenu = True
elif MainMenu=="3": elif MainMenu=="3":
SMBIOSMenu=True SMBIOSMenu=True
@@ -185,13 +184,14 @@ while MainMenu:
print(" - Syncretic: AAAMouSSE and telemetrap") print(" - Syncretic: AAAMouSSE and telemetrap")
print("") print("")
CreditMenu = raw_input(" Press any key to exit: ") CreditMenu = raw_input(" Press any key to exit: ")
if CreditMenu=="1": print("Returning to main menu...")
print("Returning to main menu...") CreditMenu=False
CreditMenu=False MainMenu=True
MainMenu=True
elif MainMenu=="5": elif MainMenu=="5":
print("\n Closing program...") print("\n Closing program...")
sys.exit(1) sys.exit(1)
else: else:
print("\n Not Valid Choice Try again") print("\n Not Valid Choice Try again")
MainMenu=True
+7
View File
@@ -86,3 +86,10 @@ Xserve3,1
</details> </details>
<br> <br>
## How to run
1. [Download the release](https://github.com/dortania/Opencore-Legacy-Patcher/releases)
2. Run the `OpenCore-Patcher.command` file
3. Once opened, select option 1 and build your EFI
* if poatching for a different patching, selectect option 3 first
4. Once finished, run option 2 a the main menu and install onto your desired drive
+5
View File
@@ -263,6 +263,7 @@ def ListDiskutil():
DiskMenu = True DiskMenu = True
while DiskMenu: while DiskMenu:
os.system('clear') os.system('clear')
print("Loading diskutil...(This may take some time)")
diskList = subprocess.Popen(["diskutil", "list"], stdout=subprocess.PIPE).communicate()[0] diskList = subprocess.Popen(["diskutil", "list"], stdout=subprocess.PIPE).communicate()[0]
print(diskList) print(diskList)
ChosenDisk = raw_input('Please select the disk you want to install OpenCore to(ie. disk1): ') 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") rmtree("/Volumes/EFI/EFI")
if os.path.exists(Versions.opencore_path_done): if os.path.exists(Versions.opencore_path_done):
copy_tree(Versions.opencore_path_done, efiVol) copy_tree(Versions.opencore_path_done, efiVol)
copy(Versions.icon_path, efiVol)
print("OpenCore transfer complete") 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())
+4
View File
@@ -63,3 +63,7 @@ build_path = os.path.join(current_path, r'Build-Folder/')
# Tools # 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")
Binary file not shown.