From 181986775433a603e3bb555169b7c159da3d4139 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 21 Oct 2020 19:17:05 +0200 Subject: [PATCH] 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. --- scripts/build_ios.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/build_ios.sh b/scripts/build_ios.sh index da82a9a0..7515e664 100755 --- a/scripts/build_ios.sh +++ b/scripts/build_ios.sh @@ -37,8 +37,13 @@ if [ ! -L "gj_common" ]; then ln -s git_bindings/gj_common gj_common 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 - -#git co .