From 6b861c96268bb9a1b566fc3f3831db836bba4d2f Mon Sep 17 00:00:00 2001 From: Curtis Rueden Date: Fri, 2 Feb 2024 20:27:41 -0600 Subject: [PATCH] bin/pack.sh: use best compression; force macOS When attempting to pack a macOS Universal2 binary, an error was raised: upx: dist/Contents/MacOS/launcher-macos-x64: CantPackException: macOS is currently not supported (try --force-macos) So let's try the --force-macos flag! --- bin/pack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pack.sh b/bin/pack.sh index e32f5be..ce3bfc6 100755 --- a/bin/pack.sh +++ b/bin/pack.sh @@ -29,7 +29,7 @@ fi # If possible, run upx to compress the available binaries. if [ -x .upx/*/upx ] then - (set -x; .upx/*/upx $(find dist -perm /+x -type f)) + (set -x; .upx/*/upx --best --force-macos $(find dist -perm /+x -type f)) fi # Display the result.