Method
get_platform_label
(&self)
Source from the content-addressed store, hash-verified
| 376 | } |
| 377 | |
| 378 | fn get_platform_label(&self) -> &str { |
| 379 | let os = self.get_os(); |
| 380 | let arch = self.get_arch(); |
| 381 | if WINDOWS.is(os) { |
| 382 | if ARM64.is(arch) { |
| 383 | "win-arm64" |
| 384 | } else if X32.is(arch) { |
| 385 | "win32" |
| 386 | } else { |
| 387 | "win64" |
| 388 | } |
| 389 | } else if MACOS.is(os) { |
| 390 | if ARM64.is(arch) { "mac-arm64" } else { "mac64" } |
| 391 | } else { |
| 392 | "linux64" |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | fn request_latest_browser_version_from_online( |
| 397 | &mut self, |