mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 09:29:48 +00:00
90508b8726
Conflicts: configure_cake_wallet.sh cw_core/lib/amount_converter.dart cw_core/lib/wallet_type.dart cw_monero/lib/monero_wallet.dart lib/view_model/unspent_coins/unspent_coins_list_view_model.dart scripts/android/pubspec_gen.sh scripts/ios/app_config.sh scripts/macos/app_config.sh tool/configure.dart
34 lines
No EOL
685 B
Bash
Executable file
34 lines
No EOL
685 B
Bash
Executable file
#!/bin/bash
|
|
|
|
IOS="ios"
|
|
ANDROID="android"
|
|
MACOS="macos"
|
|
|
|
PLATFORMS=($IOS $ANDROID $MACOS)
|
|
PLATFORM=$1
|
|
|
|
if ! [[ " ${PLATFORMS[*]} " =~ " ${PLATFORM} " ]]; then
|
|
echo "specify platform: ./configure_cake_wallet.sh ios|android|macos"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$PLATFORM" == "$IOS" ]; then
|
|
echo "Configuring for iOS"
|
|
cd scripts/ios
|
|
fi
|
|
|
|
if [ "$PLATFORM" == "$MACOS" ]; then
|
|
echo "Configuring for macOS"
|
|
cd scripts/macos
|
|
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 |