mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 20:49:28 +00:00
26 lines
550 B
Bash
Executable file
26 lines
550 B
Bash
Executable file
IOS="ios"
|
|
ANDROID="android"
|
|
|
|
PLATFORMS=($IOS $ANDROID)
|
|
PLATFORM=$1
|
|
|
|
if ! [[ " ${PLATFORMS[*]} " =~ " ${PLATFORM} " ]]; then
|
|
echo "specify platform: ./configure_cake_wallet.sh ios|android"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$PLATFORM" == "$IOS" ]; then
|
|
echo "Configuring for iOS"
|
|
cd scripts/ios
|
|
fi
|
|
|
|
if [ "$PLATFORM" == "$ANDROID" ]; then
|
|
echo "Configuring for Android"
|
|
cd scripts/android
|
|
fi
|
|
|
|
source ./app_env.sh cakewallet
|
|
./app_config.sh
|
|
cd ../.. && flutter pub get
|
|
flutter packages pub run tool/generate_localization.dart
|
|
./model_generator.sh
|