From 2c26f9aaa1aff6e15950067cc1b111b37270c28d Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Tue, 20 Feb 2024 13:12:46 +0800 Subject: [PATCH] Use git info to generate version number --- RedPandaIDE/RedPandaIDE.pro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 7867df35..328ed9e1 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -17,7 +17,9 @@ APP_NAME = RedPandaCPP APP_VERSION = 2.26 -TEST_VERSION = beta2 +# TEST_VERSION = beta2 +TEST_VERSION = $$system(git rev-list HEAD --count) + contains(QMAKE_HOST.arch, x86_64):{ DEFINES += ARCH_X86_64=1 } else: { @@ -57,7 +59,7 @@ DEFINES += APP_NAME=\\\"$${APP_NAME}\\\" isEmpty(TEST_VERSION) { DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}\\\" } else { - DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}-$${TEST_VERSION}\\\" + DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}.$${TEST_VERSION}\\\" } win32 { _WINDOWS_PREFER_OPENCONSOLE = $$(WINDOWS_PREFER_OPENCONSOLE)