From 546715dd706d39ccef09c98c9cab2fee25ca2ddd Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 02:23:25 +0100 Subject: fix(crunch): Use strip/gzexe on macOS instead of UPX UPX is unreliable on macOS. Switched to using standard 'strip -u -r' and 'gzexe' for binary compression on Darwin systems. Achieved a compressed binary size of ~48KB (dynamically linked). Updated FETCH_DEPS.md to reflect that UPX is now only required for Linux/Windows. --- FETCH_DEPS.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'FETCH_DEPS.md') diff --git a/FETCH_DEPS.md b/FETCH_DEPS.md index c8f315f..ce62db2 100644 --- a/FETCH_DEPS.md +++ b/FETCH_DEPS.md @@ -59,14 +59,10 @@ These scripts will download `glfw3webgpu.h` and `glfw3webgpu.c` into `third_part ## UPX -Executable packer for binary compression. +Executable packer for binary compression (Linux/Windows only). +On macOS, the build script defaults to `strip` and `gzexe` due to UPX compatibility issues. ### Installation -**macOS:** -```bash -brew install upx -``` - -**Other platforms:** +**Linux/Windows:** Download the appropriate release from https://github.com/upx/upx/releases and ensure the `upx` executable is in your PATH. -- cgit v1.2.3