prepare_moneroc.sh: skip zano submodule + shallow + parallel clones

monero_c (MrCyjaneK's multi-coin C wrapper) bundles monero, wownero, and
zano as sibling git submodules. Upstream prepare_moneroc.sh did a naive
'git submodule update --init --recursive' which pulled all three plus
their deep transitive submodules — zano alone drags down a ~100MB Qt UI
subtree we never compile.

Now: deinit + rm -rf zano (so it stays gone across runs), init only
monero and wownero, --depth 1 for shallow, --jobs 8 for parallel. Same
patches loop trimmed to drop zano.
This commit is contained in:
jwinterm
2026-05-15 07:47:08 -04:00
parent 492e60a6da
commit 7d3ab3ff44
+10 -2
View File
@@ -18,9 +18,17 @@ fi
git fetch -a
git checkout bc8d1a0b75b97156d71579581b4cdfe58c777ed2
git reset --hard
git submodule update --init --force --recursive
for coin in monero wownero zano;
# Hash Wallet: monero_c bundles monero, wownero, AND zano as sibling
# submodules. Upstream did `git submodule update --init --recursive` which
# pulled ALL three (and their deep transitive submodules — zano alone drags
# down a ~100MB Qt UI tree we don't need). Init only the coins we ship,
# shallow clones, in parallel.
git submodule deinit -f zano 2>/dev/null || true
rm -rf zano
git submodule update --init --recursive --depth 1 --jobs 8 monero wownero
for coin in monero wownero;
do
if [[ ! -f "$coin/.patch-applied" ]];
then