Fixes for pubspec.yaml generation

This commit is contained in:
M 2022-01-11 18:46:25 +02:00
parent 9381524d6c
commit bef8db1e49
2 changed files with 8 additions and 2 deletions

View file

@ -5,8 +5,6 @@ if [ -z "$APP_ANDROID_TYPE" ]; then
exit 1 exit 1
fi fi
sed -i "0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}" ./../../pubspec.yaml
sed -i "0,/version:/{s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/}" ./../../android/app/src/main/AndroidManifest.xml
./app_icon.sh ./app_icon.sh
CONFIG_ARGS="" CONFIG_ARGS=""
@ -21,6 +19,12 @@ case $APP_ANDROID_TYPE in
esac esac
cd ../.. cd ../..
cp -rf pubspec_description.yaml pubspec.yaml
flutter pub get flutter pub get
flutter pub run tool/generate_pubspec.dart flutter pub run tool/generate_pubspec.dart
flutter pub get
flutter packages pub run tool/configure.dart $CONFIG_ARGS flutter packages pub run tool/configure.dart $CONFIG_ARGS
sed -i "0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}" ./pubspec.yaml
sed -i "0,/version:/{s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/}" ./android/app/src/main/AndroidManifest.xml

View file

@ -25,8 +25,10 @@ case $APP_IOS_TYPE in
;; ;;
esac esac
cp -rf pubspec_description.yaml pubspec.yaml
flutter pub get flutter pub get
flutter pub run tool/generate_pubspec.dart flutter pub run tool/generate_pubspec.dart
flutter pub get
flutter packages pub run tool/configure.dart $CONFIG_ARGS flutter packages pub run tool/configure.dart $CONFIG_ARGS
cd $DIR cd $DIR
$DIR/app_icon.sh $DIR/app_icon.sh