always display commit hash with the version, log version hash, bump version for new release.

This commit is contained in:
ITotalJustice
2025-05-28 15:37:14 +01:00
parent 36c8a60de0
commit 04c3c64562
2 changed files with 2 additions and 6 deletions

View File

@@ -30,11 +30,7 @@ execute_process(
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_STRIP_TRAILING_WHITESPACE
) )
if (GIT_DIRTY) set(sphaira_VERSION_HASH "${sphaira_VERSION} [${GIT_COMMIT}]")
set(sphaira_VERSION_HASH "${sphaira_VERSION} ${GIT_COMMIT}")
else()
set(sphaira_VERSION_HASH "${sphaira_VERSION}")
endif()
add_executable(sphaira add_executable(sphaira
source/ui/menus/appstore.cpp source/ui/menus/appstore.cpp

View File

@@ -1375,7 +1375,7 @@ App::App(const char* argv0) {
if (App::GetLogEnable()) { if (App::GetLogEnable()) {
log_file_init(); 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); App::Notify("Warning! Logs are enabled, Sphaira will run slowly!"_i18n);
} }