mirror of
https://github.com/jcefmaven/jcefbuild.git
synced 2025-09-17 21:06:38 +08:00
Copy natives correctly on linux/arm64 & linux/arm/v6
This commit is contained in:
parent
9940b72ee3
commit
4d5de16f09
@ -15,6 +15,8 @@ WORKDIR /builder
|
||||
COPY jcef /jcef
|
||||
#Copy prebuild classes, if any
|
||||
COPY out/linux* /prebuild
|
||||
#Copy additional natives
|
||||
COPY natives /natives
|
||||
|
||||
#Copy and launch run script
|
||||
COPY scripts/run_linux.sh .
|
||||
|
@ -65,8 +65,12 @@ fi
|
||||
if [ ${TARGETARCH} == 'amd64' ] || [ ${TARGETARCH} == 'arm64' ]; then
|
||||
cd ../binary_distrib/linux64
|
||||
if [ ${BUILD_TYPE} == 'Release' ]; then (echo "Stripping binary..." && strip bin/lib/linux64/libcef.so) fi
|
||||
#Replace natives on arm64
|
||||
if [ ${TARGETARCH} == 'arm64' ]; then (rm bin/gluegen-rt-natives* && rm bin/jogl-all-natives* && cp /natives/gluegen-rt-natives-linux-aarch64.jar bin && cp /natives/jogl-all-natives-linux-aarch64.jar bin) fi
|
||||
else
|
||||
cd ../binary_distrib/linux32
|
||||
if [ ${BUILD_TYPE} == 'Release' ]; then (echo "Stripping binary..." && strip bin/lib/linux32/libcef.so) fi
|
||||
#Replace natives on armv6
|
||||
if [ ${TARGETARCH} == 'arm/v6' ]; then (rm bin/gluegen-rt-natives* && rm bin/jogl-all-natives* && cp /natives/gluegen-rt-natives-linux-armv6hf.jar bin && cp /natives/jogl-all-natives-linux-armv6hf.jar bin) fi
|
||||
fi
|
||||
tar -czvf ../../binary_distrib.tar.gz *
|
||||
|
Loading…
Reference in New Issue
Block a user