From 5be381d2b7783587083b0295a5bff4d98671a4e0 Mon Sep 17 00:00:00 2001 From: wpetit Date: Mon, 12 Sep 2022 18:22:49 +0200 Subject: [PATCH] Disable upx compression for mips arch --- script/release | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/release b/script/release index 38fd7f3..4b49fa3 100755 --- a/script/release +++ b/script/release @@ -29,7 +29,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