mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
use upx compression for binaries
This commit is contained in:
@@ -75,6 +75,9 @@ for PLATFORM in "${PLATFORMS[@]}"; do
|
||||
CMD="GOOS=${GOOS} GOARCH=${GOARCH} ${GO_ARM} ${GO_MIPS} ${GOBIN} build ${BUILD_FLAGS} -o ${BIN_FILENAME} ./cmd"
|
||||
echo "${CMD}"
|
||||
eval "$CMD" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}"
|
||||
CMD="upx ${BIN_FILENAME}"; # upx --brute produce much smaller binaries
|
||||
echo "compress with ${CMD}"
|
||||
eval "$CMD"
|
||||
done
|
||||
|
||||
#####################################
|
||||
@@ -100,6 +103,9 @@ for GOARCH in "${!COMPILERS[@]}"; do
|
||||
CMD="GOOS=${GOOS} GOARCH=${GOARCH} ${GO_ARM} CGO_ENABLED=1 ${GOBIN} build ${BUILD_FLAGS} -o ${BIN_FILENAME} ./cmd"
|
||||
echo "${CMD}"
|
||||
eval "${CMD}" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}"
|
||||
CMD="upx ${BIN_FILENAME}"; # upx --brute produce much smaller binaries
|
||||
echo "compress with ${CMD}"
|
||||
eval "$CMD"
|
||||
done
|
||||
|
||||
# eval errors
|
||||
|
||||
Reference in New Issue
Block a user