Skip to content

Commit

Permalink
revert: switch back to old version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Blooym committed Nov 8, 2024
1 parent acc3a88 commit 9dbc1bb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
31 changes: 15 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "xlm"
description = "A painless way to use XIVLauncher on Steam Deck & Linux."
authors = ["Blooym"]
repository = "https://github.com/Blooym/xlm"
version = "0.3.0"
version = "0.3.1"
edition = "2021"

[dependencies]
Expand All @@ -28,7 +28,7 @@ reqwest = { version = "0.12.9", default-features = false, features = [
"charset",
] }
tar = "0.4.43"
tokio = { version = "1.41.0", features = [
tokio = { version = "1.41.1", features = [
"rt-multi-thread",
"macros",
"process",
Expand All @@ -41,7 +41,6 @@ self_update = { version = "0.41.0", default-features = false, features = [
"archive-tar",
"compression-flate2",
] }
semver = "1.0.23"

[profile.release]
lto = true
Expand Down
6 changes: 3 additions & 3 deletions src/commands/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ impl LaunchCommand {
) {
Ok(ver) => {
if !self.skip_update {
if semver::Version::parse(&ver)? >= semver::Version::parse(&remote_version)? {
if ver == remote_version {
info!(
"XIVLauncher is up to date! (local: {ver} >= remote: {remote_version})"
"XIVLauncher is up to date! (local: {ver} == remote: {remote_version})"
);
} else {
let mut launch_ui = LaunchUI::new();
info!("XIVLauncher is out of date (local {ver} < remote: {remote_version}) - starting update");
info!("XIVLauncher is out of date (local {ver} != remote: {remote_version}) - starting update");
Self::install_or_update_xlcore(
&remote_version,
remote_release_url,
Expand Down

0 comments on commit 9dbc1bb

Please sign in to comment.