From 92399016083e2967078acc917706ce75ce11b6f4 Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 21 Aug 2022 06:52:31 +0200 Subject: [PATCH] build: fix publish --- scripts/build-apk.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/build-apk.sh b/scripts/build-apk.sh index 3a87c36..3545ed6 100755 --- a/scripts/build-apk.sh +++ b/scripts/build-apk.sh @@ -11,11 +11,12 @@ BUILD=$(awk -F '+' '{ print $2 }' <<<$fVersion) ori_app="app.apk" echo "Nom du build final: ${APPNAME}-${VERSION}+${BUILD}.apk" +[[ $withPush == "withPush" ]] && echo "Publish after build" ## To build Rust dependancies # cargo br -flutter clean +#flutter clean if [[ $1 == "bundle" ]]; then flutter build appbundle --release --target-platform android-arm,android-arm64 --build-name $VERSION --build-number $BUILD else @@ -35,8 +36,8 @@ else fi appPath="$DL/${APPNAME}-${VERSION}+${BUILD}.apk" -mv build/app/outputs/flutter-apk/$ori_app "$appPath" && echo "$appPath" || exit 1 +mv build/app/outputs/flutter-apk/$ori_app "$appPath" || exit 1 -[[ $withPush == "withPush" ]] && /home/poka/scripts/link/pushGecko $VERSION +[[ $withPush == "withPush" ]] && /home/poka/scripts/link/pushGecko $VERSION+$BUILD exit 0