Radically revamp disk/partition selection process

Co-authored-by: Michael Eckhoff <mreckhof@gmail.com>
This commit is contained in:
Dhinak G
2021-01-31 13:22:37 -05:00
parent 5bfa2afc38
commit 8917368988
4 changed files with 147 additions and 73 deletions

View File

@@ -4,7 +4,7 @@ from __future__ import print_function
import subprocess
from Resources import build, ModelArray, Versions, utilities
from Resources import build, ModelArray, Constants, utilities
PATCHER_VERSION = "0.0.9"
@@ -26,19 +26,7 @@ class OpenCoreLegacyPatcher():
build.OpenCoreMenus(self.constants).build_opencore_menu(self.custom_model or self.current_model)
def install_opencore(self):
utilities.cls()
utilities.header(["Installing OpenCore to Drive"])
if self.constants.opencore_release_folder.exists():
print("\nFound OpenCore in Build Folder")
build.BuildOpenCore(self.custom_model or self.current_model, self.constants).copy_efi()
input("Press [Enter] to go back.")
else:
utilities.TUIOnlyPrint(["Installing OpenCore to Drive"],
"Press [Enter] to go back.\n",
["""OpenCore folder missing!
Please build OpenCore first!"""]).start()
build.BuildOpenCore(self.custom_model or self.current_model, self.constants).copy_efi()
def change_model(self):
utilities.cls()