Browse Source

drone: android auto increment AndroidManifest versionCode for second android build (arm64) - fix: don't overwrite file while reading

group_add
Dan Ballard 1 month ago
parent
commit
1f98899f6b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      .drone.yml

+ 3
- 1
.drone.yml View File

@@ -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`


Loading…
Cancel
Save