We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ddc03 commit 51031ccCopy full SHA for 51031cc
2 files changed
OpenRGB.pro
@@ -73,7 +73,13 @@ freebsd:BUILDDATE = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%
73
macx:BUILDDATE = $$system(date -j -R -r "${SOURCE_DATE_EPOCH:-$(date +%s)}")
74
GIT_COMMIT_ID = $$system(git log -n 1 --pretty=format:"%H")
75
GIT_COMMIT_DATE = $$system(git log -n 1 --pretty=format:"%ci")
76
-GIT_BRANCH = $$system(scripts/git-get-branch.sh)
+
77
+unix {
78
+ GIT_BRANCH = $$system(sh scripts/git-get-branch.sh)
79
+}
80
+else {
81
+ GIT_BRANCH = $$system(pwsh scripts/git-get-branch.ps1)
82
83
84
message("GIT_BRANCH: "$$GIT_BRANCH)
85
DEFINES += \
scripts/git-get-branch.ps1
@@ -0,0 +1,2 @@
1
+$HASH = git log --pretty=%h -1
2
+git show-ref | select-string $HASH | select-string -NotMatch HEAD | foreach {$_ -replace '.*/(.*)','$1'}
0 commit comments