Skip to content

Commit b8310cb

Browse files
jbergstroemrvagg
authored andcommitted
build: reduce tarball size by 8-10%
Slim the tarballs further by removing examples, documentation and test for third party libraries. Also switch to checkout-index versus archive so we avoid using tar. PR-URL: #961 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 84ee272 commit b8310cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,14 @@ $(PKG): release-only
277277
SIGN="$(INT_SIGN)" PKG="$(PKG)" bash tools/osx-productsign.sh
278278

279279
$(TARBALL): release-only $(NODE_EXE) doc
280-
git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
280+
git checkout-index -a -f --prefix=$(TARNAME)/
281281
mkdir -p $(TARNAME)/doc/api
282282
cp doc/iojs.1 $(TARNAME)/doc/iojs.1
283283
cp -r out/doc/api/* $(TARNAME)/doc/api/
284-
rm -rf $(TARNAME)/deps/v8/test # too big
284+
rm -rf $(TARNAME)/deps/v8/{test,samples,tools/profviz} # too big
285285
rm -rf $(TARNAME)/doc/images # too big
286+
rm -rf $(TARNAME)/deps/uv/{docs,samples,test}
287+
rm -rf $(TARNAME)/deps/openssl/{doc,demos,test}
286288
rm -rf $(TARNAME)/deps/zlib/contrib # too big, unused
287289
find $(TARNAME)/ -type l | xargs rm # annoying on windows
288290
tar -cf $(TARNAME).tar $(TARNAME)

0 commit comments

Comments
 (0)