build: fix publish

This commit is contained in:
poka 2022-08-21 06:52:31 +02:00
parent 3abf2666ba
commit 9239901608
1 changed files with 4 additions and 3 deletions

View File

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