Skip to content

Commit

Permalink
Show version info in the file properties on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Oct 9, 2024
1 parent c3462e6 commit 979b837
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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\" \
Expand Down
6 changes: 5 additions & 1 deletion src/app/install.pri
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 979b837

Please sign in to comment.