From 979b837a754513fd1d3008017b8c3aa1a7f09c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Mustoha?= Date: Wed, 9 Oct 2024 12:55:08 +0200 Subject: [PATCH] Show version info in the file properties on Windows --- .qmake.conf | 2 +- src/app/install.pri | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.qmake.conf b/.qmake.conf index 5dea75023..28b7d25e3 100644 --- a/.qmake.conf +++ b/.qmake.conf @@ -5,7 +5,7 @@ GIT_REVISION = $$system(git \ --git-dir \"$${TOP_SRCDIR}/.git\" \ --work-tree \"$${TOP_SRCDIR}\" \ describe \ - --always --dirty) + --always --long --dirty) GIT_DATE = $$system(git \ --git-dir \"$${TOP_SRCDIR}/.git\" \ diff --git a/src/app/install.pri b/src/app/install.pri index ba9b59ca2..1179664ed 100644 --- a/src/app/install.pri +++ b/src/app/install.pri @@ -50,10 +50,14 @@ win32 { QMAKE_TARGET_PRODUCT = "pegasus-frontend" QMAKE_TARGET_COMPANY = "pegasus-frontend.org" QMAKE_TARGET_DESCRIPTION = "Pegasus emulator frontend" - QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2017-2020 Matyas Mustoha" + QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2017-2024 Matyas Mustoha" RC_ICONS = platform/windows/app_icon.ico OTHER_FILES += $${RC_ICONS} + VERSION_STR = $$GIT_REVISION + VERSION_STR ~= s|^alpha([0-9]+?)-([0-9]+?)-.+|0.\1.\2| + VERSION = $$VERSION_STR + target.path = $${INSTALL_BINDIR} } macx {