Add offline TUI

This commit is contained in:
Mykola Grymalyuk
2021-09-17 13:42:27 -06:00
parent 950f645f02
commit 45332d2cf9
5 changed files with 57 additions and 2 deletions

View File

@@ -540,7 +540,13 @@ set million colour before rebooting"""
print("- Removing old Apple Binaries zip")
Path(self.constants.payload_apple_root_path_zip).unlink()
Utilities.download_file(link, self.constants.payload_apple_root_path_zip)
local_zip = Path(self.constants.payload_path) / f"{os_ver}.zip"
if Path(local_zip).exists():
print(f"- Found local {os_ver} zip, skipping download")
print(f"- Duplicating into Apple.zip")
shutil.copy(local_zip, self.constants.payload_apple_root_path_zip)
else:
Utilities.download_file(link, self.constants.payload_apple_root_path_zip)
if self.constants.payload_apple_root_path_zip.exists():
print("- Download completed")