Fetches the latest release version from GitHub. For beta builds, fetches the latest prerelease; for stable builds, fetches the latest stable release. This ensures each channel only sees updates from its own channel. Releases whose CI hasn't yet uploaded the current-platform binary are skipped — see `release_has_current_platform_asset`.
()
| 188 | /// uploaded the current-platform binary are skipped — see |
| 189 | /// `release_has_current_platform_asset`. |
| 190 | pub fn fetch_latest_version() -> Option<String> { |
| 191 | if is_beta() { |
| 192 | fetch_latest_beta_version() |
| 193 | } else { |
| 194 | fetch_latest_stable_version() |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | /// Fetches the latest stable release version from GitHub. |
| 199 | pub fn fetch_latest_stable_version() -> Option<String> { |
no test coverage detected