Compare commits
2 Commits
1.0.0-4-g7
...
1.0.0-6-gd
Author | SHA1 | Date | |
---|---|---|---|
d38f0be312 | |||
5be381d2b7 |
@ -5,6 +5,8 @@ set -eo pipefail
|
|||||||
OS_TARGETS=(linux)
|
OS_TARGETS=(linux)
|
||||||
ARCH_TARGETS=${ARCH_TARGETS:-amd64 mipsle}
|
ARCH_TARGETS=${ARCH_TARGETS:-amd64 mipsle}
|
||||||
|
|
||||||
|
export GOMIPS=softfloat
|
||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||||
|
|
||||||
function build {
|
function build {
|
||||||
@ -29,7 +31,9 @@ function build {
|
|||||||
-o "$destdir/$name" \
|
-o "$destdir/$name" \
|
||||||
"$srcdir"
|
"$srcdir"
|
||||||
|
|
||||||
if [ ! -z "$(which upx)" ]; then
|
# Disable UPX compression for MIPS archs
|
||||||
|
# See https://github.com/upx/upx/issues/339
|
||||||
|
if [ ! -z "$(which upx)" ] && [[ ! "$arch" =~ "mips" ]]; then
|
||||||
upx --best "$destdir/$name"
|
upx --best "$destdir/$name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user