mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-29 11:44:01 +01:00
feat: pin all dependencies to git sources (#3381)
This commit is contained in:
+14
-1
@@ -1,11 +1,14 @@
|
||||
#!/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
|
||||
bash -c "cd $cwcoin; flutter pub get; dart run build_runner build --delete-conflicting-outputs; cd .." &
|
||||
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
|
||||
@@ -15,10 +18,20 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user