From 04ae0a46fdc50a2ec96d5f6e2284c4ddd6c92a65 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 27 Feb 2023 14:27:01 +0100 Subject: opentrack, installer: add back git version parsing --- installer/opentrack-installer.iss | 4 ++-- opentrack/lang/nl_NL.ts | 27 +++++++++++++++++++++++++++ opentrack/lang/ru_RU.ts | 27 +++++++++++++++++++++++++++ opentrack/lang/stub.ts | 27 +++++++++++++++++++++++++++ opentrack/lang/zh_CN.ts | 27 +++++++++++++++++++++++++++ opentrack/main-window.cpp | 3 +-- 6 files changed, 111 insertions(+), 4 deletions(-) diff --git a/installer/opentrack-installer.iss b/installer/opentrack-installer.iss index 469192f7..01478557 100644 --- a/installer/opentrack-installer.iss +++ b/installer/opentrack-installer.iss @@ -3,9 +3,9 @@ #include "../build/opentrack-version.hxx" #define MyAppName "TrackHat opentrack v3" -#define MyAppVersion "TrackHat opentrack v3.0b" +#define MyAppVersion OPENTRACK_VERSION #define MyAppPublisher "TrackHat" -#define MyAppURL "http://github.com/opentrack/opentrack" +#define MyAppURL "https://www.trackhat.org/trackhat-opentrack" #define MyAppExeName "opentrack.exe" [Setup] diff --git a/opentrack/lang/nl_NL.ts b/opentrack/lang/nl_NL.ts index b0e0072a..aad3532b 100644 --- a/opentrack/lang/nl_NL.ts +++ b/opentrack/lang/nl_NL.ts @@ -12,6 +12,33 @@ + + UpdateDialog + + Dialog + + + + Software update released + + + + Current version: + + + + TextLabel + + + + Released version: + + + + Don't remind me again about this version + + + main_window diff --git a/opentrack/lang/ru_RU.ts b/opentrack/lang/ru_RU.ts index 6f202f4f..3a0cad0d 100644 --- a/opentrack/lang/ru_RU.ts +++ b/opentrack/lang/ru_RU.ts @@ -12,6 +12,33 @@ Новое имя профиля: + + UpdateDialog + + Dialog + + + + Software update released + + + + Current version: + + + + TextLabel + + + + Released version: + + + + Don't remind me again about this version + + + main_window diff --git a/opentrack/lang/stub.ts b/opentrack/lang/stub.ts index cef43cb3..de72e075 100644 --- a/opentrack/lang/stub.ts +++ b/opentrack/lang/stub.ts @@ -12,6 +12,33 @@ + + UpdateDialog + + Dialog + + + + Software update released + + + + Current version: + + + + TextLabel + + + + Released version: + + + + Don't remind me again about this version + + + main_window diff --git a/opentrack/lang/zh_CN.ts b/opentrack/lang/zh_CN.ts index cfeb5f3e..bdd69ff8 100644 --- a/opentrack/lang/zh_CN.ts +++ b/opentrack/lang/zh_CN.ts @@ -12,6 +12,33 @@ 新文件名字: + + UpdateDialog + + Dialog + + + + Software update released + + + + Current version: + + + + TextLabel + + + + Released version: + + + + Don't remind me again about this version + + + main_window diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index 896247c4..3e60b7a3 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -588,8 +588,7 @@ void main_window::show_pose_(const double* mapped, const double* raw) void main_window::set_title(const QString& game_title) { - //static const QString version{opentrack_version}; - static const QString version = "TrackHat opentrack v3"; + static const QString version{opentrack_version}; static const QString sep { tr(" :: ") }; static const QString pat1{ version + sep + "%1" + sep + "%2" }; static const QString pat2{ version + sep + "%1" }; -- cgit v1.2.3