devops: strip linux binaries

The `--strip-unneeded` removes all symbols needed for library
compilation as part of a `.a` static library.
([source](https://www.technovelty.org/linux/stripping-shared-libraries.html))

So these are safe to remove and they should keep our binary
debuggable. These should save us ~100Mb unzipped.

References #658
This commit is contained in:
Andrey Lushnikov 2020-01-30 19:10:05 -08:00
parent 24c5df65c2
commit b77b31c55c

View File

@ -82,6 +82,7 @@ createZipForLinux() {
# tar resulting directory and cleanup TMP.
cd $tmpdir
strip --strip-unneeded * || true
zip --symlinks -r $ZIP_PATH ./
cd -
rm -rf $tmpdir