Browse Source

drone android + windows build versions

pull/169/head
Dan Ballard 3 years ago
parent
commit
493fbeba38
  1. 12
      .drone.yml

12
.drone.yml

@ -50,9 +50,11 @@ pipeline:
- find -iname 'moc*' | xargs rm
- find -iname 'rcc*' | xargs rm
- go get -d
- qtdeploy build android
- export VERSION=`git describe --tags`
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
- qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build android
- cd deploy
- export FILENAME=cwtch-android-`date +%G-%m-%d-%H-%M`.apk
- export FILENAME=cwtch-android-$BUILDDATE.apk
- cp android/build-debug.apk $FILENAME
- sha256sum $FILENAME > $FILENAME.sha256
build-windows:
@ -75,11 +77,13 @@ pipeline:
- find -iname 'moc*' | xargs rm
- find -iname 'rcc*' | xargs rm
- go get -d
- qtdeploy build windows
- export VERSION=`git describe --tags`
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
- qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build windows
- cp -r windows/* deploy/windows
- cd deploy
- mv windows cwtch
- export FILENAME=cwtch-windows-`date +%G-%m-%d-%H-%M`.zip
- export FILENAME=cwtch-windows-$BUILDDATE.zip
- zip -r $FILENAME cwtch
- sha256sum $FILENAME > $FILENAME.sha256
- rm -r cwtch