Simplified the prebuild script
This commit is contained in:
+14
-31
@@ -4,36 +4,19 @@ set -e
|
|||||||
# debug log
|
# debug log
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
cd core
|
# Add additional modules to the end of this, seperated by space
|
||||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
modules=("core" "model" "contact" "forward" "rule_filter" "fcm" "email_recovery" "server_settings")
|
||||||
|
|
||||||
## Install necessary pods
|
for mod in "${modules[@]}"; do
|
||||||
# cd ../ios
|
(
|
||||||
# flutter pub get && pod install
|
cd "$mod"
|
||||||
|
flutter pub get
|
||||||
|
dart run build_runner build --delete-conflicting-outputs
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
cd ../model
|
# For the parent module
|
||||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
flutter pub get
|
||||||
|
dart run build_runner build --delete-conflicting-outputs &&
|
||||||
cd ../contact
|
dart run intl_generator:extract_to_arb --output-dir=./lib/l10n lib/main/localizations/app_localizations.dart &&
|
||||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
dart run intl_generator:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/main/localizations/app_localizations.dart lib/l10n/intl*.arb
|
||||||
|
|
||||||
cd ../forward
|
|
||||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
|
||||||
|
|
||||||
cd ../rule_filter
|
|
||||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
|
||||||
|
|
||||||
cd ../fcm
|
|
||||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
|
||||||
|
|
||||||
cd ../email_recovery
|
|
||||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
|
||||||
|
|
||||||
cd ../server_settings
|
|
||||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
flutter pub get \
|
|
||||||
&& dart run build_runner build --delete-conflicting-outputs \
|
|
||||||
&& dart run intl_generator:extract_to_arb --output-dir=./lib/l10n lib/main/localizations/app_localizations.dart \
|
|
||||||
&& dart run intl_generator:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/main/localizations/app_localizations.dart lib/l10n/intl*.arb
|
|
||||||
|
|||||||
Reference in New Issue
Block a user