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:
jwinterm
2026-05-14 17:38:18 -04:00
parent 45ef3be0c6
commit 4fe96feb1b
10 changed files with 129 additions and 1 deletions
+6 -1
View File
@@ -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