Files
workavia-mail-front/prebuild.sh
T
2022-08-09 09:26:07 +07:00

28 lines
860 B
Bash

#!/bin/bash
echo Pre-build ...
cd core
flutter pub get
# Install necessary pods
cd ../ios
flutter pub get && pod install
cd ../model
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
cd ../contact
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
cd ../rule_filter
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
cd ..
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get && flutter pub run intl_generator:extract_to_arb --output-dir=./lib/l10n lib/main/localizations/app_localizations.dart
flutter pub get && flutter pub run intl_generator:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/main/localizations/app_localizations.dart lib/l10n/intl*.arb
echo \[Completed\] pre-build!!!