4 ms·
UPX still works great when used with Go executables. We use it heavily to compress some of our Docker image executables [1]. [1] https://github.com/znly/docke
by steeve 9y ago
UPX still works great when used with Go executables.
We use it heavily to compress some of our Docker image executables [1].
[1] https://github.com/znly/docker-protobuf/blob/master/Dockerfile#L113 https://github.com/znly/docker-protobuf/blob/master/Dockerfi...
- slezyr 9y agoIt should work on almost every binary. The exception are NSIS installers, self-extracting archives (exe rar files), files with IDL interfaces. When NSIS starts they will try to open it's own exe file and find the section in which it's packed data is stored. But UPX will remove those sections and create .UPX section with compressed data.
- justinfrankel 9y agoYou can actually set NSIS to UPX-pack its stub, if you're so inclined, but the stub is pretty small already.
- slezyr 9y agoThis isn't what I meant. If you try to run UPX on someones NSIS installer the resulting file will fail to launch.
- kronos29296 9y agoWhen I first found upx I did this a couple of times only to fail pretty badly and then I stopped doing it. This was like 7-8 years ago when I first tried the portable version. Never found the cause till today.
- jacobush 9y agoHmm, works for me tho