Skip to content

Commit

Permalink
bin/pack.sh: do not pack macOS binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Feb 5, 2024
1 parent 1fa0bf2 commit 9208b96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ fi
# If possible, run upx to compress the available binaries.
if [ -x .upx/*/upx ]
then
(set -x; .upx/*/upx --best --force-macos $(find dist -perm /+x -type f))
# NB: The `-maxdepth 2` intentionally excludes Contents/MacOS/* binaries,
# because upx complains that it does not support packing macOS executables.
# There is a flag `--force-macos`, but when I tested it, it mangled the
# 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; .upx/*/upx --best $(find dist -maxdepth 2 -perm /+x -type f))
fi

# Display the result.
Expand Down

0 comments on commit 9208b96

Please sign in to comment.