mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
38 lines
930 B
Bash
Executable File
38 lines
930 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e
|
|
|
|
pids=()
|
|
|
|
for cwcoin in cw_{core,evm,monero,bitcoin,nano,bitcoin_cash,solana,tron,wownero,zano,decred,dogecoin,zcash}
|
|
do
|
|
if [[ "x$1" == "xasync" ]];
|
|
then
|
|
env PUB_CACHE=$HOME/.cache/pub-cache-$cwcoin bash -c "cd $cwcoin; flutter pub get; dart run build_runner build --delete-conflicting-outputs; cd .." &
|
|
pids+=($!)
|
|
else
|
|
cd $cwcoin; flutter pub get; dart run build_runner build --delete-conflicting-outputs; cd ..
|
|
fi
|
|
done
|
|
for cwcoin in cw_mweb;
|
|
do
|
|
if [[ "x$1" == "xasync" ]];
|
|
then
|
|
bash -c "cd $cwcoin; flutter pub get; cd .." &
|
|
pids+=($!)
|
|
else
|
|
cd $cwcoin; flutter pub get; cd ..
|
|
fi
|
|
done
|
|
|
|
for pid in "${pids[@]}"; do
|
|
if ! wait "$pid"; then
|
|
ec=$?
|
|
echo "Error: Failed to generate models: $ec"
|
|
exit $ec
|
|
fi
|
|
done
|
|
|
|
flutter pub get
|
|
dart run build_runner build --delete-conflicting-outputs
|
|
flutter pub get
|