Spidermonkey build: do not unpack unneeded test files

This change reduces the disk space requirement by 50%, from 1.1 GB down to 564 MB.
It is relevant when building 0AD in resource-constrained environments (e.g. in CI).

(cherry picked from commit 8bd0d0b84f)
Signed-off-by: phosit <phosit@autistici.org>
This commit is contained in:
Olivier Tilloy 2025-12-31 13:34:09 +01:00 committed by phosit
parent fb12d00c70
commit 72b56d9fe5
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -9,7 +9,7 @@ cd "$(dirname "$0")"
PV=128.13.0
FOLDER="mozjs-${PV}"
# If same-version changes are needed, increment this.
LIB_VERSION="${PV}+wfg3"
LIB_VERSION="${PV}+wfg4"
LIB_NAME="mozjs128"
build_archive()
@ -69,7 +69,13 @@ fi
# unpack
rm -Rf "${FOLDER}"
"${TAR}" xfJ "${FOLDER}.tar.xz"
"${TAR}" xfJ "${FOLDER}.tar.xz" \
--exclude=js/src/tests/non262 \
--exclude=js/src/tests/test262 \
--exclude=js/src/jit-test \
--exclude=python/mozperftest \
--exclude=testing/web-platform \
--exclude=third_party/rust/mp4parse/link-u-avif-sample-images
# patch
(