Skip to content

Commit 7d4b236

Browse files
committed
fixed repak update check
1 parent af96228 commit 7d4b236

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = ["repak", "repak-gui", "repak_cli","simd_str_cmp"]
66
repository = "https://github.com/natimerry/repak-rivals"
77
authors = ["spuds", "trumank","natimerry"]
88
license = "MIT OR Apache-2.0"
9-
version = "2.8.0"
9+
version = "2.8.1"
1010
edition = "2021"
1111
keywords = ["marvel-rivals","unreal-engine", "pak", "unrealpak"]
1212

repak-gui/src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub fn check_repak_rivals_version(current_version: &str) {
150150
let latest_version = Version::parse(latest).expect("invalid latest version format");
151151
let current_version = Version::parse(current_version).expect("invalid current version format");
152152

153-
if current_version <= latest_version {
153+
if current_version < latest_version {
154154
panic!(
155155
"repak-rivals is outdated: current={}, latest={}",
156156
current_version, latest_version
@@ -159,9 +159,6 @@ pub fn check_repak_rivals_version(current_version: &str) {
159159
}
160160

161161
fn main() {
162-
#[cfg(not(debug_assertions))]
163-
check_repak_rivals_version(env!("CARGO_PKG_VERSION"));
164-
165162
#[cfg(target_os = "windows")]
166163
if !is_console() {
167164
free_console();
@@ -171,6 +168,8 @@ fn main() {
171168
std::panic::set_hook(Box::new(move |info| {
172169
custom_panic(info.into());
173170
}));
171+
#[cfg(not(debug_assertions))]
172+
check_repak_rivals_version(env!("CARGO_PKG_VERSION"));
174173

175174
/*
176175
Custom baked CLI utility for tobi, if the program detects a specific argument passed to it, it does not spaw GUI

0 commit comments

Comments
 (0)