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)
|
||||
ARCH_TARGETS=${ARCH_TARGETS:-amd64 mipsle}
|
||||
|
||||
export GOMIPS=softfloat
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
|
||||
function build {
|
||||
@ -29,7 +31,9 @@ function build {
|
||||
-o "$destdir/$name" \
|
||||
"$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"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user