diff --git a/Cargo.toml b/Cargo.toml index 56d6569..3459d82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cleo" -version = "2.2.1" +version = "2.2.2" authors = ["squ1dd13 "] edition = "2021" description = "CLEO SA for iOS" diff --git a/deb/control b/deb/control index 8bccdaa..af75a1a 100644 --- a/deb/control +++ b/deb/control @@ -4,7 +4,7 @@ Depends: mobilesubstrate Provides: com.squ1dd13.csios, com.squ1dd13.zinc Conflicts: com.squ1dd13.csios, com.squ1dd13.zinc, com.brend0n.gtasa60fps Replaces: com.squ1dd13.csios, com.squ1dd13.zinc -Version: 2.2.1 +Version: 2.2.2 Architecture: iphoneos-arm Description: CLEO for GTA:SA. Now with extra Rust! Maintainer: squ1dd13 diff --git a/src/github.rs b/src/github.rs index d1e2893..1082a68 100644 --- a/src/github.rs +++ b/src/github.rs @@ -261,12 +261,12 @@ fn user_wants_alpha() -> bool { matches!(Options::get().release_channel, ReleaseChannel::Alpha) } -/// Returns the most stable version of CLEO after or including the given version. -fn most_stable_from(min_ver: Version) -> Result> { +/// Returns the most stable version of CLEO after the given version. +fn most_stable_after(min_ver: Version) -> Result> { Ok(fetch_releases()? .into_iter() - // Only include releases that are newer than or the same as the given version. - .filter(|(version, _)| version >= &min_ver) + // Only include releases that are newer than the given version. + .filter(|(version, _)| version > &min_ver) // Find a stable version, or just take the first version available. The releases are sorted // in descending order by version number, so if we can't find a stable release then we just // use whatever the latest version is and assume that it's the most stable. @@ -286,7 +286,7 @@ fn fetch_available_update() -> Result> { // If the user doesn't want to receive alpha updates, get them on the most stable version. // If they're already on an alpha version, this will update them to the latest alpha, with // the idea being that a newer alpha will be more stable. - return most_stable_from(current_version); + return most_stable_after(current_version); } // If the user wants to receive alpha updates, just find the latest version, regardless of diff --git a/src/update.rs b/src/update.rs index 3175afc..0cfb81e 100644 --- a/src/update.rs +++ b/src/update.rs @@ -101,9 +101,9 @@ fn show_update_prompt(screen: *mut u8, (update_ver, update_url): (Version, Strin } fn on_no(raw_url_box: usize) { - let url = unbox_string(raw_url_box); + // let url = unbox_string(raw_url_box); - log::info!("User rejected update. URL was {}.", url); + // log::info!("User rejected update. URL was {}.", url); } show_yes_no_menu(