Get the CfT platform name (e.g., mac-arm64, linux64).
()
| 167 | |
| 168 | |
| 169 | def get_system_and_platform(): |
| 170 | """Get the CfT platform name (e.g., mac-arm64, linux64).""" |
| 171 | system = platform.system() |
| 172 | |
| 173 | if system == 'Darwin': |
| 174 | if platform.machine() in ('arm64', 'aarch64'): |
| 175 | return 'mac-arm64' |
| 176 | return 'mac-x64' |
| 177 | if system == 'Linux': |
| 178 | return 'linux64' |
| 179 | if system == 'Windows': |
| 180 | return 'win64' |
| 181 | |
| 182 | print(f'Error: Unknown or unsupported operating system: {system}') |
| 183 | sys.exit(1) |
| 184 | |
| 185 | |
| 186 | def get_chromedriver_download_url(full_chrome_version, cft_platform): |