forked from cake-tech/cake_wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_generator.sh
More file actions
executable file
·37 lines (33 loc) · 930 Bytes
/
Copy pathmodel_generator.sh
File metadata and controls
executable file
·37 lines (33 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/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