mirror of
git://f0xx.org/ac/ac-scripts
synced 2026-08-09 20:59:09 +03:00
Builder: seed third-party without gitfile; skip init when pre-seeded.
Isolated Docker builds copy native deps from host without broken submodule .git pointers; CI init script skips network fetch when trees validate. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -157,9 +157,16 @@ seed_third_party_from_host() {
|
||||
local p
|
||||
for p in libvpx opus speex wireguard-android; do
|
||||
if [[ -d "${host_tree}/third-party/${p}" ]] && third_party_incomplete "$iso_tree" "$p"; then
|
||||
log "[runner] seed third-party/${p} from host checkout"
|
||||
log "[runner] seed third-party/${p} from host checkout (no .git metadata)"
|
||||
rm -rf "${iso_tree}/third-party/${p}"
|
||||
cp -r "${host_tree}/third-party/${p}" "${iso_tree}/third-party/"
|
||||
mkdir -p "${iso_tree}/third-party"
|
||||
if command -v rsync >/dev/null 2>&1; then
|
||||
rsync -a --delete --exclude='.git' --exclude='.git/' \
|
||||
"${host_tree}/third-party/${p}/" "${iso_tree}/third-party/${p}/"
|
||||
else
|
||||
cp -a "${host_tree}/third-party/${p}" "${iso_tree}/third-party/"
|
||||
find "${iso_tree}/third-party/${p}" -name .git -exec rm -rf {} + 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user