mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
update build scripts to be more modular and useful in dev
This commit is contained in:
parent
c7deeaea9b
commit
26b224516b
2 changed files with 34 additions and 22 deletions
|
@ -23,14 +23,5 @@ source ./app_env.sh cakewallet
|
||||||
./app_config.sh
|
./app_config.sh
|
||||||
cd ../.. && flutter pub get
|
cd ../.. && flutter pub get
|
||||||
flutter packages pub run tool/generate_localization.dart
|
flutter packages pub run tool/generate_localization.dart
|
||||||
cd cw_core && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
|
||||||
cd cw_evm && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
./model_generator.sh all
|
||||||
cd cw_monero && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
|
||||||
cd cw_bitcoin && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
|
||||||
cd cw_haven && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
|
||||||
cd cw_nano && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
|
||||||
cd cw_bitcoin_cash && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
|
||||||
cd cw_solana && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
|
||||||
cd cw_ethereum && flutter pub get && cd ..
|
|
||||||
cd cw_polygon && flutter pub get && cd ..
|
|
||||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
|
|
@ -1,11 +1,32 @@
|
||||||
cd cw_core && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
CURRENCIES=(
|
||||||
cd cw_evm && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
"core"
|
||||||
cd cw_monero && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
"evm"
|
||||||
cd cw_bitcoin && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
"monero"
|
||||||
cd cw_haven && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
"bitcoin"
|
||||||
cd cw_nano && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
"haven"
|
||||||
cd cw_bitcoin_cash && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
"nano"
|
||||||
cd cw_solana && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
"bitcoin_cash"
|
||||||
cd cw_ethereum && flutter pub get && cd ..
|
"lightning"
|
||||||
cd cw_polygon && flutter pub get && cd ..
|
"solana"
|
||||||
flutter packages pub run build_runner build --delete-conflicting-outputs
|
"ethereum"
|
||||||
|
"polygon"
|
||||||
|
)
|
||||||
|
|
||||||
|
CURRENCY=$1
|
||||||
|
|
||||||
|
if [ "$CURRENCY" == "all" ]; then
|
||||||
|
for dir in "${CURRENCIES[@]}"; do
|
||||||
|
echo "Processing cw_$dir"
|
||||||
|
cd "cw_$dir" && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
||||||
|
done
|
||||||
|
else
|
||||||
|
if [[ " ${CURRENCIES[@]} " =~ " $CURRENCY " ]]; then
|
||||||
|
echo "Processing cw_$CURRENCY"
|
||||||
|
cd "cw_$CURRENCY" && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd ..
|
||||||
|
else
|
||||||
|
echo "Invalid currency type. Available options: all, ${CURRENCIES[@]}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
flutter packages pub run build_runner build --delete-conflicting-outputs
|
Loading…
Reference in a new issue