forked from TalaoDAO/AltMe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
executable file
·88 lines (81 loc) · 2.19 KB
/
script.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
if [[ "$*" == *-build_runner* ]];
then
echo "build runner"
fvm flutter clean
cd packages
cd credential_manifest
fvm flutter pub get
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
cd ..
cd cryptocurrency_keys
fvm flutter pub get
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
cd ..
cd ..
fvm flutter pub get
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
fvm flutter pub get
elif [[ "$*" == *-rundev* ]];
then
echo "flutter run development"
fvm flutter run --flavor development --target lib/main_development.dart
elif [[ "$*" == *-runstage* ]];
then
echo "flutter run staging"
fvm flutter run --flavor staging --target lib/main_staging.dart
elif [[ "$*" == *-run* ]];
then
echo "flutter run production"
fvm flutter run --flavor production --target lib/main_production.dart
elif [[ "$*" == *-pod$sinstall* ]];
then
echo "pod install"
cd ios
pod install
cd ..
elif [[ "$*" == *-build$sappbundle* ]];
then
echo "app bundle"
fvm flutter build appbundle --flavor "production" --target "lib/main_production.dart"
elif [[ "$*" == *-deploy$sios* ]];
then
echo "deploy ios"
echo "Make sure you are in right branch"
fvm flutter build ios --release
cd ios
fastlane beta
cd ..
elif [[ "$*" == *-completeIos* ]];
then
echo "build runner"
fvm flutter clean
fvm flutter pub get
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
echo "pod install"
cd ios
pod install
pod update
cd ..
echo "deploy ios"
echo "Make sure you are in right branch"
fvm flutter build ios --release --flavor "production" --target "lib/main_production.dart"
cd ios
fastlane beta
cd ..
else
echo "build runner"
fvm flutter clean
cd packages
cd credential_manifest
fvm flutter pub get
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
cd ..
cd cryptocurrency_keys
fvm flutter pub get
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
cd ..
cd ..
fvm flutter pub get
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
fvm flutter pub get
fi