gui_main.py: use ditto for unzips

This commit is contained in:
Mykola Grymalyuk
2022-04-20 12:10:09 -06:00
parent cf8c8f72a4
commit 64daaf3e4b

View File

@@ -1482,7 +1482,7 @@ class wx_python_gui:
if utilities.download_file(link, self.constants.installer_pkg_zip_path):
if Path(self.constants.installer_pkg_path).exists():
subprocess.run(["rm", self.constants.installer_pkg_path])
subprocess.run(["unzip", "-o", self.constants.installer_pkg_zip_path, "-d", self.constants.installer_pkg_path])
subprocess.run(["ditto", "-V", "-x", "-k", "--sequesterRsrc", "--rsrc", self.constants.installer_pkg_zip_path, self.constants.payload_path])
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