2024-05-02 20:47:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-01-11 23:00:41 +00:00
|
|
|
IOS="ios"
|
|
|
|
ANDROID="android"
|
2024-05-06 20:41:40 +00:00
|
|
|
MACOS="macos"
|
2024-01-11 23:00:41 +00:00
|
|
|
|
2024-05-06 20:41:40 +00:00
|
|
|
PLATFORMS=($IOS $ANDROID $MACOS)
|
2024-01-11 23:00:41 +00:00
|
|
|
PLATFORM=$1
|
|
|
|
|
|
|
|
if ! [[ " ${PLATFORMS[*]} " =~ " ${PLATFORM} " ]]; then
|
2024-05-08 18:34:24 +00:00
|
|
|
echo "specify platform: ./configure_cake_wallet.sh ios|android|macos"
|
2024-01-11 23:00:41 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$PLATFORM" == "$IOS" ]; then
|
|
|
|
echo "Configuring for iOS"
|
|
|
|
cd scripts/ios
|
|
|
|
fi
|
|
|
|
|
2024-05-06 20:41:40 +00:00
|
|
|
if [ "$PLATFORM" == "$MACOS" ]; then
|
|
|
|
echo "Configuring for macOS"
|
|
|
|
cd scripts/macos
|
|
|
|
fi
|
|
|
|
|
2024-01-11 23:00:41 +00:00
|
|
|
if [ "$PLATFORM" == "$ANDROID" ]; then
|
|
|
|
echo "Configuring for Android"
|
|
|
|
cd scripts/android
|
|
|
|
fi
|
|
|
|
|
2023-08-04 17:01:49 +00:00
|
|
|
source ./app_env.sh cakewallet
|
|
|
|
./app_config.sh
|
|
|
|
cd ../.. && flutter pub get
|
2023-11-24 23:31:49 +00:00
|
|
|
flutter packages pub run tool/generate_localization.dart
|
2024-04-18 18:10:32 +00:00
|
|
|
./model_generator.sh
|