From c4ca76ff3a91958bcbc25058495c7dfe79edaea1 Mon Sep 17 00:00:00 2001 From: Curtis Rueden Date: Mon, 30 Dec 2024 10:17:13 -0600 Subject: [PATCH] Warn if upx not available for current platform --- bin/pack.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/pack.sh b/bin/pack.sh index d20e675..a9a2f9d 100755 --- a/bin/pack.sh +++ b/bin/pack.sh @@ -35,6 +35,8 @@ then # Universal2 fat binary. Maybe we could pack each architecture, and only # afterward combine them with lipo? But doing that would be more involved. (set -x; .cache/upx/*/upx --best $(find dist -maxdepth 2 -perm /+x -type f)) || true +else + echo "[WARNING] No upx for this platform; skipping executable packing." 1>&2; fi # Display the result.