Skip to content

Commit

Permalink
Merge branch 'main' into dev/packages
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Jul 21, 2023
2 parents c5bffe6 + 9992000 commit 17d6282
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
15 changes: 9 additions & 6 deletions src-tauri/src/github/release_notes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,17 @@ pub async fn get_newest_flightcore_version() -> Result<FlightCoreVersion, String
#[tauri::command]
pub async fn check_is_flightcore_outdated() -> Result<bool, String> {
let newest_flightcore_release = get_newest_flightcore_version().await?;
// Parse version number excluding leading `v`
let newest_version = semver::Version::parse(&newest_flightcore_release.tag_name[1..]).unwrap();

// Get version of installed FlightCore...
let version = env!("CARGO_PKG_VERSION");
// ...and format it
let version = format!("v{}", version);
// Get version of installed FlightCore
let current_version = env!("CARGO_PKG_VERSION");
let current_version = semver::Version::parse(current_version).unwrap();

// TODO: This shouldn't be a string compare but promper semver compare
let is_outdated = version != newest_flightcore_release.tag_name;
#[cfg(debug_assertions)]
let is_outdated = current_version < newest_version;
#[cfg(not(debug_assertions))]
let is_outdated = current_version != newest_version;

// If outdated, check how new the update is
if is_outdated {
Expand Down
9 changes: 7 additions & 2 deletions src-vue/src/i18n/lang/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,16 @@
"reinstall_text": "Proszę czekać",
"reinstall_success": "Pomyślnie przeinstalowano Northstar",
"title": "Okno naprawy FlightCore",
"warning": "To okno zawiera różne funkcje do naprawy typowych problemów z Northstar i FlightCore."
"warning": "To okno zawiera różne funkcje do naprawy typowych problemów z Northstar i FlightCore.",
"disable_modsettings": "Wyłącz moda ModSettings",
"disable_modsettings_success": "Wyłączono moda ModSettings"
}
},
"nb_ts_mods_per_page_desc1": "Ma to wpływ na wydajność wyświetlania podczas przeglądania modów Thunderstore.",
"open_game_folder": "Otwórz folder"
"open_game_folder": "Otwórz folder",
"show_deprecated_mods_desc2": "Ostrożnie, mody są zazwyczaj oznaczone jako przestarzałe nie bez powodu.",
"show_deprecated_mods": "Pokaż przestarzałe mody Thunderstore",
"show_deprecated_mods_desc1": "Pozwala to zobaczyć przestarzałe mody w kolekcji modów online."
},
"notification": {
"game_folder": {
Expand Down

0 comments on commit 17d6282

Please sign in to comment.