From 91a595644f95ef9e97e7ee775eb01d8e3728bade Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Tue, 19 Dec 2017 21:15:17 +0100 Subject: [PATCH] Take program version from git tag --- docs/dev/release.md | 1 - flameshot.pro | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/dev/release.md b/docs/dev/release.md index 80a3496f..28be5bb7 100644 --- a/docs/dev/release.md +++ b/docs/dev/release.md @@ -2,7 +2,6 @@ - Check build with QT 5.3 . - Update translations. - - Increase version number in `flameshot.pro`, the variable VERSION must be a version number in the format X.X.X, after the release, the next commit have to change the version to X.X.X-dev. - Properly generate the .deb file. - Releases always use annotated tags as in `git tag -a -m "v0.5.0"` - Add a changelog description in the Github's release. diff --git a/flameshot.pro b/flameshot.pro index 213b1074..59947817 100644 --- a/flameshot.pro +++ b/flameshot.pro @@ -4,7 +4,7 @@ # #------------------------------------------------- -VERSION = 0.5.0-dev +VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags) DEFINES += APP_VERSION=\\\"$$VERSION\\\" QT += core gui