mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Trim model_generator.sh to only run build_runner on chains we ship
The hardcoded list iterated every cw_* module Cake ever supported, including
the ones we disabled (solana, tron, zano, decred, zcash). Those modules are
still on disk but aren't in pubspec.yaml, so the build_runner pass for them
is wasted work — minutes per fresh setup.
Trimmed to: cw_{core,evm,monero,bitcoin,nano,bitcoin_cash,wownero,dogecoin}.
cw_mweb is untouched (separate loop, only runs pub get not build_runner).
This commit is contained in:
+6
-1
@@ -1,7 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -x -e
|
||||
|
||||
for cwcoin in cw_{core,evm,monero,bitcoin,nano,bitcoin_cash,solana,tron,wownero,zano,decred,dogecoin,zcash}
|
||||
# Hash Wallet: trimmed to chains we actually ship. The disabled ones
|
||||
# (solana, tron, zano, decred, zcash) still have their cw_* directories on
|
||||
# disk but aren't in pubspec.yaml, so running build_runner on them is just
|
||||
# wasted minutes. Add a chain back to this list if you re-enable it in
|
||||
# scripts/{ios,android,linux,macos}/app_config.sh + pubspec_gen.sh.
|
||||
for cwcoin in cw_{core,evm,monero,bitcoin,nano,bitcoin_cash,wownero,dogecoin}
|
||||
do
|
||||
if [[ "x$1" == "xasync" ]];
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user