dev
sh 43 lines 904 Bytes
Raw
1 #!/bin/bash
2 set -x -e
3 IOS="ios"
4 ANDROID="android"
5 MACOS="macos"
6 LINUX="linux"
7
8 PLATFORMS=($IOS $ANDROID $MACOS $LINUX)
9 PLATFORM=$1
10
11 if ! [[ " ${PLATFORMS[*]} " =~ " ${PLATFORM} " ]]; then
12 echo "specify platform: ./configure_cake_wallet.sh ios|android|macos|linux"
13 exit 1
14 fi
15
16 if [ "$PLATFORM" == "$IOS" ]; then
17 echo "Configuring for iOS"
18 cd scripts/ios
19 fi
20
21 if [ "$PLATFORM" == "$MACOS" ]; then
22 echo "Configuring for macOS"
23 cd scripts/macos
24 fi
25
26 if [ "$PLATFORM" == "$ANDROID" ]; then
27 echo "Configuring for Android"
28 cd scripts/android
29 fi
30
31 if [ "$PLATFORM" == "$LINUX" ]; then
32 echo "Configuring for linux"
33 cd scripts/linux
34 fi
35
36 source ./app_env.sh cakewallet
37 ./app_config.sh
38 echo "flutter pub get may take a while, please wait..."
39 cd ../.. && flutter pub get
40 dart run tool/generate_localization.dart
41 ./compile_graphics.sh
42 #./model_generator.sh
43 #cd macos && pod install