Skip to content

Commit

Permalink
bin/pack.sh: use best compression; force macOS
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
ctrueden committed Feb 3, 2024
1 parent 2c00cf5 commit 6b861c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6b861c9

Please sign in to comment.