CakeWallet/model_generator.sh
2025-04-11 11:06:15 +02:00

24 lines
679 B
Bash
Executable file

#!/bin/bash
set -x -e
for cwcoin in cw_{core,evm,monero,bitcoin,nano,bitcoin_cash,solana,tron,wownero,zano,decred,tari}
do
if [[ "x$1" == "xasync" ]];
then
bash -c "cd $cwcoin; flutter pub get; dart run build_runner build --delete-conflicting-outputs; cd .." &
else
cd $cwcoin; flutter pub get; dart run build_runner build --delete-conflicting-outputs; cd ..
fi
done
for cwcoin in cw_{polygon,ethereum,mweb};
do
if [[ "x$1" == "xasync" ]];
then
bash -c "cd $cwcoin; flutter pub get; cd .." &
else
cd $cwcoin; flutter pub get; cd ..
fi
done
flutter pub get
dart run build_runner build --delete-conflicting-outputs