drone builddate and buildver for linux

This commit is contained in:
Dan Ballard 2019-03-29 12:43:48 -07:00
parent 9f6eb6dfcb
commit f425e3ee32
1 changed files with 4 additions and 2 deletions

View File

@ -20,8 +20,10 @@ pipeline:
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git openssh-client
- go get -d
- $QT_DIR/5.12.0/gcc_64/bin/lrelease ui.pro
- qtdeploy build linux
- export FILENAME=cwtch-linux-`date +%G-%m-%d-%H-%M`.tar.gz
- export VERSION=`git describe --tags`
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
- qtdeploy -ldflags "-X main.buildVer=$VERSION main.buildDate=$BUILDDATE" build linux
- export FILENAME=cwtch-linux-$BUILDDATE.tar.gz
- cd deploy
- mv linux cwtch
- tar -czf $FILENAME cwtch