build_ios: Pass the build number

We don't actually need to pass the build name, but I'm still doing it
since there seem to be some problems with the Share plugin.
This commit is contained in:
Vishesh Handa
2020-10-21 19:17:05 +02:00
parent 35e1ab3e07
commit 1819867754

View File

@ -37,8 +37,13 @@ if [ ! -L "gj_common" ]; then
ln -s git_bindings/gj_common gj_common ln -s git_bindings/gj_common gj_common
fi fi
BUILD_NUM=$(git rev-list --count HEAD)
echo "Build Number: $BUILD_NUM"
#cd ios BUILD_NAME=$(cat pubspec.yaml | grep version | awk '{ print $2 }' | awk -F "+" '{ print $1 }')
echo "Build Name: $BUILD_NAME"
flutter build ios --release --no-codesign --build-number=$BUILD_NUM --build-name=$BUILD_NAME
cd ios
#fastlane release #fastlane release
#git co .