From: NightStrike <nig...@gm...> - 2011-08-08 02:29:34
|
On Fri, Aug 5, 2011 at 3:36 PM, Jon <jon...@gm...> wrote: > 1) Strip -s on all exes. I maintain a build recipe at https://github.com/oneclick/rubyinstaller which aggregates MSys and the latest mingw-w32-1.0-bin_i686-mingw_* download into what we call the DevKit. Currently this explodes to ~758MB on-disk. After stripping just the mingw-w64 exes using something similar to the following, the on-disk size shrinks to ~328MB. > > for /r mingw %F in (*.exe) do strip -s %F This is what the install-strip make target is for. Don't do it manually. Just call make install-strip instead of make install. > 2) Add prefix-stripped (eg - gcc) exes to the download to accompany the prefixed (eg - i686-w64-mingw32-gcc) exes. Why? > 3) Compress the final download using LZMA2 to a *.7z similar to what Ruben provides. Given the robustness and availability of the 7-Zip project, I don't believe there's a good reason to stick with zip's for Windows users. zip on windows is available without any 3rd party utilities. Any windows user can extract a zip, and zip is understood everwhere to be a windows archive. I see no reason to change that just to gain a few megs off an archive. The bigger issue, and the one we should concentrate on, is the duplicated lib directory. |