From 5c38bb4946f365806442a266e0edf3d69a2ac0bb Mon Sep 17 00:00:00 2001 From: Pratik-canopas Date: Wed, 17 Jan 2024 17:54:49 +0530 Subject: [PATCH] Fix android api build --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e2b2121..3424bdb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,14 +36,14 @@ jobs: run: | cd app file='VERSION' - fileData=`cat $file` + fileData=$(cat $file) IFS='.' read -a versionValue <<< "$fileData" - buildNumber=$(expr `expr ${versionValue[0]} \* 1000000` + `expr ${versionValue[1]} \* 10000` + ${CI_PIPELINE_IID}) + buildNumber=$(( ${versionValue[0]} * 1000000 + ${versionValue[1]} * 10000 + CI_PIPELINE_IID )) IFS='' buildName="${versionValue[0]}.${versionValue[1]}.$CI_PIPELINE_IID" + echo "Generating android build $buildName $buildNumber" - flutter build apk --flavor prod --release --build-number=$buildNumber --build-name=$buildName + flutter build apk --release --build-number=$buildNumber --build-name=$buildName mv build/app/outputs/apk/release/*.apk . cd .. -