mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 14:40:52 +10:00
gui_main.py: Add non-zip handling
This commit is contained in:
+7
-2
@@ -1479,8 +1479,13 @@ class wx_python_gui:
|
|||||||
print("- Manual backup is missing on Github, no more fallbacks remaining. Quitting")
|
print("- Manual backup is missing on Github, no more fallbacks remaining. Quitting")
|
||||||
return
|
return
|
||||||
|
|
||||||
if utilities.download_file(link, self.constants.installer_pkg_zip_path):
|
if link.endswith("zip"):
|
||||||
subprocess.run(["unzip", "-o", self.constants.installer_pkg_zip_path, "-d", self.constants.installer_pkg_path])
|
if utilities.download_file(link, self.constants.installer_pkg_zip_path):
|
||||||
|
if Path(self.constants.installer_pkg_path).exists():
|
||||||
|
os.remove(self.constants.installer_pkg_path)
|
||||||
|
subprocess.run(["unzip", "-o", self.constants.installer_pkg_zip_path, "-d", self.constants.installer_pkg_path])
|
||||||
|
else:
|
||||||
|
utilities.download_file(link, self.constants.installer_pkg_path)
|
||||||
|
|
||||||
def install_installer_pkg(self, disk):
|
def install_installer_pkg(self, disk):
|
||||||
disk = disk + "s2" # ESP sits at 1, and we know macOS will have created the main partition at 2
|
disk = disk + "s2" # ESP sits at 1, and we know macOS will have created the main partition at 2
|
||||||
|
|||||||
Reference in New Issue
Block a user