Skip to content

Instantly share code, notes, and snippets.

@imnuts
Created September 12, 2011 01:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imnuts/1210404 to your computer and use it in GitHub Desktop.
Save imnuts/1210404 to your computer and use it in GitHub Desktop.
Batch file for Windows to zip align files in a directory and sub-directories
@echo off
REM Batch file to recursively zip align *.apk files in a directory
REM and its sub-directories. This is significantly easier and faster
REM than manually zip aligning them.
@echo Zip aligning now...
for /R %%X in (*.apk) do zipalign 4 "%%X" "%%~dpX%%~nX.new"
@echo Replacing non-aligned files with zip aligned files...
for /R %%X in (*.new) do move /Y "%%X" "%%~dpX%%~nX.apk"
@echo Zip aligning done, press any key to exit
pause
@dreulavelle
Copy link

is zipalign the windowsXP version cus in win7 its 'zip'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment