()
| 6 | from pathlib import Path |
| 7 | |
| 8 | def get_os_name(): |
| 9 | system = platform.system() |
| 10 | if system == "Windows": |
| 11 | return "Windows 64-bit" if platform.machine().endswith('64') else "Windows 32-bit" |
| 12 | elif system == "Darwin": |
| 13 | return "macOS" |
| 14 | elif system == "Linux": |
| 15 | return "Linux" |
| 16 | elif system == "FreeBSD": |
| 17 | return "FreeBSD" |
| 18 | elif system.startswith("CYGWIN"): |
| 19 | return "Cygwin" |
| 20 | else: |
| 21 | return "Other" |
| 22 | |
| 23 | def download_file(url, output_filename): |
| 24 | total_downloaded = 0 |