mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
add date to version
This commit is contained in:
parent
d13390befc
commit
5302403d8a
|
@ -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 += .
|
||||
|
|
Loading…
Reference in a new issue