aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-31 00:49:11 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-31 00:49:11 +0200
commit3904ca0a79cbe9329acc28d79932c85d4f1ac84f (patch)
treebc8029e42d76efb8dbb1df06398ab8416653014b
parent8013f40c74e2da19ebc0a14d17a85a82d74ead20 (diff)
Add version to title
-rw-r--r--com.dec05eba.gpu_screen_recorder.appdata.xml8
-rw-r--r--meson.build4
-rw-r--r--project.conf2
-rw-r--r--src/main.cpp6
4 files changed, 17 insertions, 3 deletions
diff --git a/com.dec05eba.gpu_screen_recorder.appdata.xml b/com.dec05eba.gpu_screen_recorder.appdata.xml
index b766d88..5d0710e 100644
--- a/com.dec05eba.gpu_screen_recorder.appdata.xml
+++ b/com.dec05eba.gpu_screen_recorder.appdata.xml
@@ -80,6 +80,14 @@
</screenshots>
<releases>
+ <release version="4.1.6" date="2024-08-30">
+ <description>
+ <ul>
+ <li>Workaround steam deck driver bug and enable steam deck support again</li>
+ <li>Improve startup time on certain systems</li>
+ </ul>
+ </description>
+ </release>
<release version="4.1.5" date="2024-08-20">
<description>
<ul>
diff --git a/meson.build b/meson.build
index d3bf982..a9b408d 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('gpu-screen-recorder-gtk', ['c', 'cpp'], version : '4.1.5', default_options : ['warning_level=2'])
+project('gpu-screen-recorder-gtk', ['c', 'cpp'], version : '4.1.6', default_options : ['warning_level=2'])
add_project_arguments('-Wshadow', language : ['c', 'cpp'])
if get_option('buildtype') == 'debug'
@@ -18,6 +18,8 @@ dep = [
dependency('ayatana-appindicator3-0.1'),
]
+add_project_arguments('-DGSR_VERSION="' + meson.project_version() + '"', language: ['c', 'cpp'])
+
executable('gpu-screen-recorder-gtk', src, dependencies : dep, install : true)
prefix = get_option('prefix')
diff --git a/project.conf b/project.conf
index 92b72d1..3f11265 100644
--- a/project.conf
+++ b/project.conf
@@ -1,7 +1,7 @@
[package]
name = "gpu-screen-recorder-gtk"
type = "executable"
-version = "4.1.5"
+version = "4.1.6"
platforms = ["posix"]
[config]
diff --git a/src/main.cpp b/src/main.cpp
index 9d266af..b7d78ad 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -20,6 +20,10 @@ extern "C" {
#include <vector>
#include <libayatana-appindicator/app-indicator.h>
+#ifndef GSR_VERSION
+#define GSR_VERSION "unknown"
+#endif
+
// Start/stop recording also means start/stop streaming and start/stop replay
#define SHORTCUT_ID_START_STOP_RECORDING "gpu_screen_recorder_start_stop_recording"
#define SHORTCUT_ID_PAUSE_UNPAUSE_RECORDING "gpu_screen_recorder_pause_unpause_recording"
@@ -3857,7 +3861,7 @@ static void activate(GtkApplication *app, gpointer) {
}
}
- std::string window_title = "GPU Screen Recorder | Running on ";
+ std::string window_title = "GPU Screen Recorder v" + std::string(GSR_VERSION) + " | Running on ";
window_title += gpu_vendor_to_name(gsr_info.gpu_info.vendor);
window = gtk_application_window_new(app);