always display commit hash with the version, log version hash, bump version for new release.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user