File: 1-replace-project-basic-info.patch

package info (click to toggle)
openrgb 0.9%2Bgit20251009%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,304 kB
  • sloc: cpp: 197,011; ansic: 1,290; sh: 402; xml: 71; python: 65; makefile: 13
file content (28 lines) | stat: -rw-r--r-- 1,073 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Ahmad Khalifa <ahmad@khalifa.ws>
Date: Sat, 28 Dec 2024 13:42:18 +0000
Forwarded: not-needed
Subject: Replace Project Basic Info

No git during build, replace that info with debian details instead

---
 OpenRGB.pro |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/OpenRGB.pro
+++ b/OpenRGB.pro
@@ -73,11 +73,11 @@
 linux:BUILDDATE         = $$system(date -R -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}")
 freebsd:BUILDDATE       = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%s)}")
 macx:BUILDDATE          = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%s)}")
-GIT_COMMIT_ID           = $$system(git log -n 1 --pretty=format:"%H")
-GIT_COMMIT_DATE         = $$system(git log -n 1 --pretty=format:"%ci")
+GIT_COMMIT_ID           = $$(DEB_UPSTREAM_COMMIT)
+GIT_COMMIT_DATE         = $$(DEB_UPSTREAM_DATE)
 
 unix {
-    GIT_BRANCH          = $$system(sh scripts/git-get-branch.sh)
+    GIT_BRANCH          = "debian"
 }
 else {
     GIT_BRANCH          = $$system(powershell -ExecutionPolicy Bypass -File scripts/git-get-branch.ps1)