From 64daaf3e4ba48ee8b1fe525352fc23076ed84a69 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Wed, 20 Apr 2022 12:10:09 -0600 Subject: [PATCH] gui_main.py: use ditto for unzips --- gui/gui_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/gui_main.py b/gui/gui_main.py index 9edcdbcca..d3c3176b4 100644 --- a/gui/gui_main.py +++ b/gui/gui_main.py @@ -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