drone: android auto increment AndroidManifest versionCode for second android build (arm64) - fix: don't overwrite file while reading
the build was successful Ayrıntılar

Bu işleme şunda yer alıyor:
Dan Ballard 2020-12-15 17:58:17 -08:00
ebeveyn b586248bda
işleme 1f98899f6b
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme

Dosyayı Görüntüle

@ -96,7 +96,9 @@ pipeline:
- echo $UPLOAD_JKS_FILE | tr -d '\n ' > android/ui.jks.b64
- base64 --decode android/ui.jks.b64 > android/ui.jks
- export GOARCH=arm64
- perl -pe 's/versionCode="(\d+)"/"versionCode=\"" .($1+1)."\""/eg' android/AndroidManifest.xml > android/AndroidManifest.xml
- perl -pe 's/versionCode="(\d+)"/"versionCode=\"" .($1+1)."\""/eg' android/AndroidManifest.xml > android/AndroidManifest.xml.inc
- rm android/AndroidManifest.xml
- mv android/AndroidManifest.xml.inc android/AndroidManifest.xml
- go mod download
- export VERSION=`git describe --tags`
- export BUILDDATE=`date +%G-%m-%d-%H-%M`