From f73d51a4844674fa0c16fa8ca801d7bc948b9662 Mon Sep 17 00:00:00 2001 From: Daniel Mikusa Date: Sun, 13 Jun 2021 21:35:42 -0400 Subject: [PATCH] Change script to be able to compress using multiple tools --- scripts/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 55df1e0..28c7e79 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -8,8 +8,8 @@ if [ "${STRIP:-false}" != "false" ]; then strip bin/main fi -if [ "${COMPRESS:-false}" != "false" ]; then - upx -q -9 bin/main +if [ "${COMPRESS:-none}" != "none" ]; then + $COMPRESS bin/main fi ln -fs main bin/build