Skip to content

Commit

Permalink
add date to version
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed May 31, 2022
1 parent d13390b commit 5302403
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion goldendict.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ system(git describe --tags --always --dirty): hasGit=1
!isEmpty(hasGit){
GIT_HASH=$$system(git rev-parse --short=8 HEAD )
}
system(echo $${VERSION}.$${GIT_HASH} > version.txt)

win32{
# date /T output is locale aware.
DD=$$system(date /T)
DATE =$$replace(DD, / , )
}
else{
DATE=$$system(date '+%y%m%d')
}

system(echo $${VERSION}.$${GIT_HASH} on $${DATE} > version.txt)

# DEPENDPATH += . generators
INCLUDEPATH += .
Expand Down

0 comments on commit 5302403

Please sign in to comment.