mirror of
https://github.com/jcefmaven/jcefbuild.git
synced 2025-09-17 21:06:38 +08:00
Reduce linux build size on release
This commit is contained in:
parent
1c1c7742dd
commit
97c6bfaf9c
14
maven_gen/generate_maven_builds.sh
Executable file
14
maven_gen/generate_maven_builds.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ ! $# -eq 1 ]
|
||||||
|
then
|
||||||
|
echo "Usage: ./generate_maven_builds.sh <build_meta_url>"
|
||||||
|
echo ""
|
||||||
|
echo "build_meta_url: The url to download build_meta.json from"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Download build_meta.json and import to local environment
|
||||||
|
export $(curl -s -L $1 | jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]")
|
||||||
|
|
||||||
|
echo "Creating maven artifacts for $release_tag..."
|
@ -45,7 +45,9 @@ fi
|
|||||||
#Pack binary_distrib
|
#Pack binary_distrib
|
||||||
if [ ${TARGETARCH} == 'amd64' ]; then
|
if [ ${TARGETARCH} == 'amd64' ]; then
|
||||||
cd ../binary_distrib/linux64
|
cd ../binary_distrib/linux64
|
||||||
|
if [ ${BUILD_TYPE} == 'Release' ]; then echo "Stripping binary..." && strip bin/lib/linux64/libcef.so fi
|
||||||
else
|
else
|
||||||
cd ../binary_distrib/linux32
|
cd ../binary_distrib/linux32
|
||||||
|
if [ ${BUILD_TYPE} == 'Release' ]; then echo "Stripping binary..." && strip bin/lib/linux32/libcef.so fi
|
||||||
fi
|
fi
|
||||||
tar -czvf ../../binary_distrib.tar.gz *
|
tar -czvf ../../binary_distrib.tar.gz *
|
||||||
|
Loading…
Reference in New Issue
Block a user