diff --git a/scripts/android/app_config.sh b/scripts/android/app_config.sh index 004b0dbd2..a7763d8bd 100755 --- a/scripts/android/app_config.sh +++ b/scripts/android/app_config.sh @@ -5,8 +5,6 @@ if [ -z "$APP_ANDROID_TYPE" ]; then exit 1 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 CONFIG_ARGS="" @@ -21,6 +19,12 @@ case $APP_ANDROID_TYPE in esac cd ../.. + +cp -rf pubspec_description.yaml pubspec.yaml flutter pub get flutter pub run tool/generate_pubspec.dart +flutter pub get 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 \ No newline at end of file diff --git a/scripts/ios/app_config.sh b/scripts/ios/app_config.sh index 77f9d8966..38e0c429c 100755 --- a/scripts/ios/app_config.sh +++ b/scripts/ios/app_config.sh @@ -25,8 +25,10 @@ case $APP_IOS_TYPE in ;; esac +cp -rf pubspec_description.yaml pubspec.yaml flutter pub get flutter pub run tool/generate_pubspec.dart +flutter pub get flutter packages pub run tool/configure.dart $CONFIG_ARGS cd $DIR $DIR/app_icon.sh