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
New: Gopherus (Feb 14, 2023), Platform 24.1 (Feb 13, 2023)
450+ real apps (49GB), 1 billion downloads, Please donate.
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
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=
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?