mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 19:36:25 +08:00
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:
@ -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 .
|
||||
|
Reference in New Issue
Block a user