diff --git a/.gitignore b/.gitignore index 827c0a0723..0ee4a63992 100644 --- a/.gitignore +++ b/.gitignore @@ -81,5 +81,4 @@ moc_*.cxx *ui_playpage.h *.[ao] *.so -openmw.appdata.xml venv/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 7628e65eb6..4cfc7ed925 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,7 @@ set(OPENMW_VERSION_RELEASE 0) set(OPENMW_VERSION_COMMITHASH "") set(OPENMW_VERSION_TAGHASH "") +set(OPENMW_VERSION_COMMITDATE "") set(OPENMW_VERSION "${OPENMW_VERSION_MAJOR}.${OPENMW_VERSION_MINOR}.${OPENMW_VERSION_RELEASE}") @@ -73,6 +74,14 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/.git) endif(GIT_FOUND) endif(EXISTS ${PROJECT_SOURCE_DIR}/.git) +execute_process ( + COMMAND ${GIT_EXECUTABLE} log -1 --format='%aI' + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} + RESULT_VARIABLE EXITCODE3 + OUTPUT_VARIABLE COMMITDATE + OUTPUT_STRIP_TRAILING_WHITESPACE) +string(SUBSTRING ${COMMITDATE} 1 10 OPENMW_VERSION_COMMITDATE) + # Macros include(OpenMWMacros) @@ -346,6 +355,9 @@ endif (APPLE) configure_resource_file(${OpenMW_SOURCE_DIR}/files/settings-default.cfg "${OpenMW_BINARY_DIR}" "settings-default.cfg") +configure_resource_file(${OpenMW_SOURCE_DIR}/files/openmw.appdata.xml + "${OpenMW_BINARY_DIR}" "openmw.appdata.xml") + if (NOT APPLE) configure_resource_file(${OpenMW_SOURCE_DIR}/files/openmw.cfg.local "${OpenMW_BINARY_DIR}" "openmw.cfg") diff --git a/files/openmw.appdata.xml b/files/openmw.appdata.xml index 5c093e3c49..39504070c6 100644 --- a/files/openmw.appdata.xml +++ b/files/openmw.appdata.xml @@ -1,7 +1,7 @@ org.openmw.desktop @@ -43,9 +43,9 @@ Copyright 2017 Bret Curtis RolePlaying - + https://openmw.org - https://bugs.openmw.org/ + https://gitlab.com/OpenMW/openmw/issues https://openmw.org/faq/