You are here

UPX Script? Recompress .jar archives?

5 posts / 0 new
Last post
rich.bradshaw
Offline
Last seen: 10 years 9 months ago
Joined: 2006-10-05 08:41
UPX Script? Recompress .jar archives?

Hi,

UPX is awesome. Extracting .jar files and recompressing them at ultra compressions is awesome, but is there any way to script this to reduce manual labour?

It would be nice to select a folder and have every .exe, .dll and .jar inside it and recursively compressed...

Has anyone made any attempt to do this?

Rich

cbj0129
Offline
Last seen: 3 years 2 weeks ago
Joined: 2006-04-03 21:59
Coming soon?

If you search for "UPX script" or click on Development in the header above, you will see that this is coming soon.

Step 5: Compression
.....
(Note: A script to compress all the JARs, EXEs and DLLs in a given directory will be released soon.)

So just set back and relax, it will be done when its done.

Clair

rich.bradshaw
Offline
Last seen: 10 years 9 months ago
Joined: 2006-10-05 08:41
Ah OK. Just wondered if

Ah OK. Just wondered if anyone else had made any attempt at doing it?

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 16 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Batch File

I have a set of batch files I use for this that compress all EXEs, DLLs and PYDs using UPX and recompress all ZIPs and JARs using 7-zip (command line). It's specific to my hard drive setup at the moment. I have a pre-alpha of an NSIS launcher that handles this (think along the lines of the Portable Apps Backup wizard with simple check boxes) that generates the batch file on the fly and then fires it up based on what you want compressed. I had planned to release this a while ago but it got a bit sidelined by all the other stuff I was working on at the time. I'll see if I can get this out so people can start using it.

(I'm currently sidelined by working on the server... yet again... to try and improve performance... so much of my life is sucked up by simply keeping this site running.)

Sometimes, the impossible can become possible, if you're awesome!

Baschti
Offline
Last seen: 2 years 1 month ago
Joined: 2006-08-05 08:18
i made an .bat for my

i made an .bat for my own...

just one line Smile

FOR /R "Apps\" %%a IN (*.exe *.dll *.sys) DO upx.exe --best --compress-icons=0 --nrv2d --crp-ms=999999 "%%a"

i have the same folder-structure as in johns suite...

Apps on my Portable Device:
Miranda, Firefox, Sunbird, Thunderbird, 7-Zip, FileZilla, GIMP, OOo, Sodoku and VLC

German User, Sorry for my bad english, I do my really really best Smile

Topic locked