forked from linagora/tmail-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprebuild.sh
33 lines (25 loc) · 1.03 KB
/
prebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
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 ../forward
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 ../fcm
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 run intl_generator:extract_to_arb --output-dir=./lib/l10n lib/main/localizations/app_localizations.dart \
&& 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