mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Remove unneeded code
This commit is contained in:
@@ -560,10 +560,6 @@ class Constants:
|
|||||||
@property
|
@property
|
||||||
def gui_path(self):
|
def gui_path(self):
|
||||||
return self.payload_path / Path("Icon/Resources.zip")
|
return self.payload_path / Path("Icon/Resources.zip")
|
||||||
|
|
||||||
@property
|
|
||||||
def postinstall_script_path(self):
|
|
||||||
return self.payload_path / Path("InstallPackage/postinstall")
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def installer_pkg_path(self):
|
def installer_pkg_path(self):
|
||||||
|
|||||||
@@ -286,13 +286,8 @@ class PatchSysVolume:
|
|||||||
input("\nPress [ENTER] to continue")
|
input("\nPress [ENTER] to continue")
|
||||||
|
|
||||||
def unmount_drive(self):
|
def unmount_drive(self):
|
||||||
# When we detect we're chainloaded in the Installer, skip unmounting
|
print("- Unmounting Root Volume (Don't worry if this fails)")
|
||||||
# We have logging in place to pull additional info after we're done
|
utilities.elevated(["diskutil", "unmount", self.root_mount_path], stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
||||||
if not "Library/InstallerSandboxes/" in str(self.constants.payload_path):
|
|
||||||
print("- Unmounting Root Volume (Don't worry if this fails)")
|
|
||||||
utilities.elevated(["diskutil", "unmount", self.root_mount_path], stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
|
||||||
else:
|
|
||||||
print("- Skipping snapshot unmount due to Installer environment")
|
|
||||||
|
|
||||||
def delete_old_binaries(self, vendor_patch):
|
def delete_old_binaries(self, vendor_patch):
|
||||||
for delete_current_kext in vendor_patch:
|
for delete_current_kext in vendor_patch:
|
||||||
@@ -730,7 +725,7 @@ class PatchSysVolume:
|
|||||||
return output
|
return output
|
||||||
|
|
||||||
def download_files(self):
|
def download_files(self):
|
||||||
if self.constants.gui_mode is False or (self.constants.wxpython_variant is True and "Library/InstallerSandboxes/" in str(self.constants.payload_path)):
|
if self.constants.gui_mode is False or "Library/InstallerSandboxes/" in str(self.constants.payload_path):
|
||||||
download_result, os_ver, link = sys_patch_download.grab_patcher_support_pkg(self.constants).download_files()
|
download_result, os_ver, link = sys_patch_download.grab_patcher_support_pkg(self.constants).download_files()
|
||||||
else:
|
else:
|
||||||
download_result = True
|
download_result = True
|
||||||
|
|||||||
Reference in New Issue
Block a user