From 03367b385663b024ca306a014bdc4d5ecb66dbb8 Mon Sep 17 00:00:00 2001 From: Daniel Mikusa Date: Sun, 13 Jun 2021 21:36:15 -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 2188b6e..2e92f22 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