drone: android auto increment AndroidManifest versionCode for second android build (arm64) - fix: don't overwrite file while reading
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
b586248bda
commit
1f98899f6b
|
@ -96,7 +96,9 @@ pipeline:
|
||||||
- echo $UPLOAD_JKS_FILE | tr -d '\n ' > android/ui.jks.b64
|
- echo $UPLOAD_JKS_FILE | tr -d '\n ' > android/ui.jks.b64
|
||||||
- base64 --decode android/ui.jks.b64 > android/ui.jks
|
- base64 --decode android/ui.jks.b64 > android/ui.jks
|
||||||
- export GOARCH=arm64
|
- 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
|
- go mod download
|
||||||
- export VERSION=`git describe --tags`
|
- export VERSION=`git describe --tags`
|
||||||
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
|
- export BUILDDATE=`date +%G-%m-%d-%H-%M`
|
||||||
|
|
Reference in New Issue