You are here

When is recursive packer being released?

5 posts / 0 new
Last post
Arithmomaniac
Offline
Last seen: 11 years 3 months ago
Joined: 2007-12-23 00:32
When is recursive packer being released?

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

https://portableapps.com/development

When is this happening?

Arithmomaniac

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 7 years 5 months ago
Joined: 2006-11-18 10:26
That comment has been their forever so don't hold your breath

Read this web page: http://cubegames.net/development/compression

In other news, I wrote (re-wrote) the same thing a few weekends ago. You need to download 7-zip command line, UPX, and OptiPNG. Modify the paths to the program files in the script below to what you have.

@echo off

:: Quick'n dirty solution to repack a JAR file with 7-Zip.
:: The JAR file itself will be overwritten with the new compressed JAR file.

:: 7zip executable existence check (set your path to 7z.exe here)
set _7zp="..\Tools\7-zip\7za.exe"
if not exist %_7zp% goto no7zp

:: temp directory existence check
set _tmp=%temp%
if not exist %_tmp% goto notemp

for /r %%e in (*.jar) do (if exist %_tmp%\%%~nxe (rd /q /s %_tmp%\%%~nxe) & md %_tmp%\%%~nxe) & (%_7zp% x %%e -o%_tmp%\%%~nxe\ & %_7zp% a -mx=9 -r -tzip %%e %_tmp%\%%~nxe\*.*) & (rd /q /s %_tmp%\%%~nxe)

goto end :: finished for now

:no7zp :: no 7-Zip executable found
echo 7zip executable (%_7zp%) not found & pause & goto end

:notemp :: no temp directory found
echo Temp directory (%_tmp%) not found. & pause & goto end

:end :: this is the end, my friend
set _7zp=
set _tmp=



:: Compress executables with UPX

set _upx="..\tools\upx\upx.exe"
for /r %%e in (*.exe,*.dll,*.sys,*.com,*.so,*.irc,*.pyd) do %_upx% "%%e" --best --compress-icons=0 --nrv2e --crp-ms=999999
set _upx=



:: Compress PNG files with OptiPNG

set _png="..\tools\optipng\optipng.exe"
for /r %%e in (*.png) do %_png% -o7 "%%e" 
set _png=

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Hmm

Can you upload that as as .bat please? (click on the edit button then click on the picture frame icon to upload with the media manager) If not, can you put the contents of it on that page please?

"If you're not part of the solution, you're part of the precipitate."

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 7 years 5 months ago
Joined: 2006-11-18 10:26
I did you one better.

Take a look at the bottom of this page and let me know if that works. Hosting the file on your site may make more sense. Bandwidth isn't an issue for me so it works either way for me.

http://cubegames.net/development/compression

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Fine for me

That's fine with me.

"If you're not part of the solution, you're part of the precipitate."

Log in or register to post comments