From 04c3c64562b44817f366b3abc69b30d64abe0df9 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Wed, 28 May 2025 15:37:14 +0100 Subject: [PATCH] always display commit hash with the version, log version hash, bump version for new release. --- sphaira/CMakeLists.txt | 6 +----- sphaira/source/app.cpp | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sphaira/CMakeLists.txt b/sphaira/CMakeLists.txt index c8b6ca1..f09b3bc 100644 --- a/sphaira/CMakeLists.txt +++ b/sphaira/CMakeLists.txt @@ -30,11 +30,7 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE ) -if (GIT_DIRTY) - set(sphaira_VERSION_HASH "${sphaira_VERSION} ${GIT_COMMIT}") -else() - set(sphaira_VERSION_HASH "${sphaira_VERSION}") -endif() +set(sphaira_VERSION_HASH "${sphaira_VERSION} [${GIT_COMMIT}]") add_executable(sphaira source/ui/menus/appstore.cpp diff --git a/sphaira/source/app.cpp b/sphaira/source/app.cpp index 0cd35b6..5d2e1fa 100644 --- a/sphaira/source/app.cpp +++ b/sphaira/source/app.cpp @@ -1375,7 +1375,7 @@ App::App(const char* argv0) { if (App::GetLogEnable()) { log_file_init(); - log_write("hello world\n"); + log_write("hello world v%s\n", APP_VERSION_HASH); App::Notify("Warning! Logs are enabled, Sphaira will run slowly!"_i18n); }