Reduce linux build size on release

This commit is contained in:
FriwiDev
2021-11-16 01:53:18 +01:00
parent 1c1c7742dd
commit 97c6bfaf9c
2 changed files with 16 additions and 0 deletions

View File

@@ -45,7 +45,9 @@ fi
#Pack binary_distrib
if [ ${TARGETARCH} == 'amd64' ]; then
cd ../binary_distrib/linux64
if [ ${BUILD_TYPE} == 'Release' ]; then echo "Stripping binary..." && strip bin/lib/linux64/libcef.so fi
else
cd ../binary_distrib/linux32
if [ ${BUILD_TYPE} == 'Release' ]; then echo "Stripping binary..." && strip bin/lib/linux32/libcef.so fi
fi
tar -czvf ../../binary_distrib.tar.gz *