Temp work-around botched download

This commit is contained in:
Mykola Grymalyuk
2021-03-28 21:51:03 -06:00
parent eeeb222896
commit 1f6dfbfd30
171 changed files with 4683 additions and 1 deletions

View File

@@ -243,6 +243,10 @@ class PatchSysVolume:
print("- Unzipping download...")
try:
zipfile.ZipFile(self.constants.payload_apple_root_path_zip).extractall(self.constants.payload_path)
print("- Renaming folder")
os.rename(self.constants.payload_apple_root_path_unzip, self.constants.payload_apple_root_path)
print("- Binaries downloaded to:")
print(self.constants.payload_path)
except zipfile.BadZipFile:
print("- Couldn't unzip")
os.remove(self.constants.payload_apple_root_path_zip)