Use the semantic version for update checks

This commit is contained in:
Marek Roszko 2024-02-16 20:52:18 -05:00
parent 835a82f0b9
commit 1717f39daf
1 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,9 @@ void UPDATE_MANAGER::CheckForUpdate( wxWindow* aNoticeParent )
requestContent.platform = "linux";
requestContent.arch = "";
#endif
requestContent.current_version = GetMajorMinorPatchVersion();
wxString verString = GetSemanticVersion();
verString.Replace( "~", "-" ); // make the string valid for semver
requestContent.current_version = verString;
requestContent.lang = Pgm().GetLanguageTag();
KICAD_SETTINGS* settings = Pgm().GetSettingsManager().GetAppSettings<KICAD_SETTINGS>();