- add new file for common functions and stuff
- though it doesn't contain any function now ;)
- red color for errors
- yellow color for "Optimizing: *"
- cyan color for modversion :)
- green color for "package complete"
- and some general cleanup
Change-Id: I83b2e352580e99b1766c5e63821281224cde5c49
pngcrush is currently storing the optimized png in <pngname>.out.
If optimizing the png fails, e.g. on palette errors, mv can't
overwrite the original file with the nonexisting .out file and prints
out an error like this:
mv: cannot stat `./foo/bar/baz.png.out': No such file or directory
Writing stderr to /dev/null will suppress that message.
Change-Id: I0b7339392545e98586d66cc8ff8abf52c443f66f
Android does not compress resources.arsc allowing it to be
read directly without uncompressing. When opticharger runs,
it compresses it breaking the optimization.
Change-Id: I9c9b9971a3fe4a21be5a633274832041ca9a33c1
This fixes market updates and redundant
*.old files from being packaged- looks to
save about 10MB on the zip.
Change-Id: I82266204de3a04f71b24e4183672185d6b2da8d9
Now uses $OUT/../../../host instead of $ANDROID_BUILD_TOP/out/host
fixes build when used with OUT_DIR_COMMON_BASE
Change-Id: Ib1934b57f3e94a3c3af10189c803fc494438a4a4
But fallback to optipng -o7 and then pngout.
This saves ~2M in final .zip size at a cost of ~5 min of build time on
my laptop.
Change-Id: Ic56f677bdc8250f4088f4dbfbfd555ceed5616c2
Signed-off-by: Evan McClain <aeroevan@gmail.com>
aapt's -0 option is for extensions only, not directories, and PinyinIME
needs .dat to be excluded. Nothing else in CM7 uses a .dat file, so
this shouldn't increase the .apk size more than is needed.
Also adding .dict, which isn't strictly required, but LatinIME wants it.
Nothing in CM7 but LatinIME uses .dict.
Change-Id: I7ce1b2cbc2b32c734978488aac2f4f6c43562cc1
The verbose output of opticharger can obscure warning messages about missing
tools so this patch reduces the noise.
The script leaves droppings in /tmp so clean this up on exit using a trap.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>