forked from mirrors/0ad
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).
This commit is contained in:
@@ -9,7 +9,7 @@ cd "$(dirname "$0")"
|
|||||||
PV=128.13.0
|
PV=128.13.0
|
||||||
FOLDER="mozjs-${PV}"
|
FOLDER="mozjs-${PV}"
|
||||||
# If same-version changes are needed, increment this.
|
# If same-version changes are needed, increment this.
|
||||||
LIB_VERSION="${PV}+wfg3"
|
LIB_VERSION="${PV}+wfg4"
|
||||||
LIB_NAME="mozjs128"
|
LIB_NAME="mozjs128"
|
||||||
|
|
||||||
build_archive()
|
build_archive()
|
||||||
@@ -69,7 +69,13 @@ fi
|
|||||||
|
|
||||||
# unpack
|
# unpack
|
||||||
rm -Rf "${FOLDER}"
|
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
|
# patch
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user