fix: extraction and version detection

This commit is contained in:
zhom
2025-06-06 23:22:45 +04:00
parent b84350eb13
commit d8d59d2bd5
5 changed files with 614 additions and 217 deletions
+3 -6
View File
@@ -346,12 +346,9 @@ impl AutoUpdater {
// Helper methods
fn is_nightly_version(&self, version: &str) -> bool {
version.contains("alpha")
|| version.contains("beta")
|| version.contains("rc")
|| version.contains("a")
|| version.contains("b")
|| version.contains("dev")
// Use the centralized nightly detection function
// Since we don't have browser context here, use the general fallback
crate::api_client::is_nightly_version(version)
}
fn is_version_newer(&self, version1: &str, version2: &str) -> bool {