mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
Also fix displayed version. Closes: https://github.com/pentoo/pentoo-overlay/issues/1446 Signed-off-by: Thibaud CANALE <thican@thican.net>
34 lines
894 B
Diff
34 lines
894 B
Diff
---
|
|
qflipper_common.pri | 15 +++------------
|
|
1 file changed, 3 insertions(+), 12 deletions(-)
|
|
|
|
diff --git a/qflipper_common.pri b/qflipper_common.pri
|
|
index 6266badf..1a6793f9 100644
|
|
--- a/qflipper_common.pri
|
|
+++ b/qflipper_common.pri
|
|
@@ -27,20 +27,11 @@ unix:!macx {
|
|
error("Unsupported OS or compiler")
|
|
}
|
|
|
|
-GIT_VERSION = $$system("git describe --tags --abbrev=0","lines", HAS_VERSION)
|
|
-!equals(HAS_VERSION, 0) {
|
|
- GIT_VERSION = unknown
|
|
-}
|
|
+GIT_VERSION = 1.3.3
|
|
|
|
-GIT_COMMIT = $$system("git rev-parse --short=8 HEAD","lines", HAS_COMMIT)
|
|
-!equals(HAS_COMMIT, 0) {
|
|
- GIT_COMMIT = unknown
|
|
-}
|
|
+GIT_COMMIT = bfce851d
|
|
|
|
-GIT_TIMESTAMP = $$system("git log -1 --pretty=format:%ct","lines", HAS_TIMESTAMP)
|
|
-!equals(HAS_TIMESTAMP, 0) {
|
|
- GIT_TIMESTAMP = 0
|
|
-}
|
|
+GIT_TIMESTAMP = 1699609231
|
|
|
|
DEFINES += APP_NAME=\\\"$$NAME\\\" \
|
|
APP_VERSION=\\\"$$GIT_VERSION\\\" \
|
|
--
|
|
2.43.2
|