Created
September 12, 2011 01:20
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is zipalign the windowsXP version cus in win7 its 'zip'