Skip to content

Commit

Permalink
fix upx
Browse files Browse the repository at this point in the history
Signed-off-by: chigusa <chigusa@chigusa.moe>
  • Loading branch information
hr3lxphr6j committed Sep 15, 2022
1 parent 0f1ba9d commit 6717c91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ build() {
_build "${target}" "${bin_name}" "${ld_flags:-}"

if [ ${UPX_ENABLE:-"0"} = "1" ]; then
upx --no-progress ${OUTPUT_PATH}/"${bin_name}"
case "${bin_name}" in
*-aix-* | *bsd-* | *-mips64* | *-riscv64 | *-s390x | *-plan9-* | *-windows-arm*) ;;
*)
upx --no-progress ${OUTPUT_PATH}/"${bin_name}"
;;
esac
fi
}

Expand Down

0 comments on commit 6717c91

Please sign in to comment.