mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
action: generate version.txt
give github action the opportunity to generate this file . If not existed , qmake will generate one
This commit is contained in:
parent
77aa253222
commit
afb5c4f951
2
.github/workflows/windows-6.x-xapian.yml
vendored
2
.github/workflows/windows-6.x-xapian.yml
vendored
|
@ -75,8 +75,6 @@ jobs:
|
||||||
previousTag=$(git tag --sort=-creatordate | sed -n 1p |cut -c 2-)
|
previousTag=$(git tag --sort=-creatordate | sed -n 1p |cut -c 2-)
|
||||||
echo "$previousTag">version.txt
|
echo "$previousTag">version.txt
|
||||||
cat version.txt
|
cat version.txt
|
||||||
pwd
|
|
||||||
ls
|
|
||||||
|
|
||||||
# # msvc编译
|
# # msvc编译
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
|
@ -13,7 +13,11 @@ system(git describe --tags --always --dirty): hasGit=1
|
||||||
GIT_HASH=$$system(git rev-parse --short=8 HEAD )
|
GIT_HASH=$$system(git rev-parse --short=8 HEAD )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
!exists( version.txt ) {
|
||||||
|
message( "generate version.txt...." )
|
||||||
system(echo $${VERSION}.$${GIT_HASH} on $${_DATE_} > version.txt)
|
system(echo $${VERSION}.$${GIT_HASH} on $${_DATE_} > version.txt)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
!CONFIG( verbose_build_output ) {
|
!CONFIG( verbose_build_output ) {
|
||||||
!win32|*-msvc* {
|
!win32|*-msvc* {
|
||||||
|
|
Loading…
Reference in a new issue