Commit 7af1879e authored by Edric Milaret's avatar Edric Milaret

build: add git describe result in binary

This permits to know which commit has been used to build the binary.

Refs #73687

Change-Id: I9582a3e8acc76d022fd4ea971aed642dc164baff
parent 6456baa6
......@@ -9,8 +9,10 @@ QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets svg
VERSION = 0.3.0
GIT_VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
DEFINES += VERSION=\\\"$$VERSION\\\"
DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\"
BUILD=$${BUILD}
TARGET = RingClientWindows
......
......@@ -34,6 +34,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
QString("<html><head/><body><p><span style=\" font-weight:600;\">Windows Ring v")
+ VERSION
+ "</span></p></body></html>");
ui->gitVersionLabel->setText(QString("version: ") + GIT_VERSION);
}
AboutDialog::~AboutDialog()
......
......@@ -549,6 +549,16 @@
</property>
</widget>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="gitVersionLabel">
<property name="text">
<string>version : </string>
</property>
<property name="margin">
<number>5</number>
</property>
</widget>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="releaseLabel">
<property name="text">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment