diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-07-27 07:14:34 +0200 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-07-27 07:14:34 +0200 |
commit | f9c88e2df0c34de85208c00af170f502f1d63be3 (patch) | |
tree | 12853eed58f59e5e251f7d16440b63defe019399 /build | |
parent | f46ddeaecad23c3a9415f02215240f478ff58ee0 (diff) |
add script for compressing binaries
Diffstat (limited to 'build')
-rw-r--r-- | build/build.bat | 1 | ||||
-rw-r--r-- | build/compress.bat | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/build/build.bat b/build/build.bat index 2190210a..a087c364 100644 --- a/build/build.bat +++ b/build/build.bat @@ -2,6 +2,7 @@ set WDK_ROOT=c:\WinDDK\7600.16385.1 call build-x86.bat call build-x64.bat +call compress.bat set PATH=%PROGRAMFILES(X86)%\Inno Setup 5 compil32 /cc xchat-wdk.iss pause diff --git a/build/compress.bat b/build/compress.bat new file mode 100644 index 00000000..37df1292 --- /dev/null +++ b/build/compress.bat @@ -0,0 +1,19 @@ +@echo off +set OPATH=%PATH% +set PATH=c:\mozilla-build\mpress;c:\mozilla-build\upx +cd ..\tmp +for %%A in (*.dll) do upx -9 -q %%A +for %%A in (*.x64) do mpress -q %%A +upx xchat.exe +cd lib\enchant +for %%A in (*.dll) do upx -9 -q %%A +for %%A in (*.x64) do mpress -q %%A +:: gtk-2.0\2.10.0\engines is already packed, skip it +cd ..\gtk-2.0\modules +for %%A in (*.dll) do upx -9 -q %%A +for %%A in (*.x64) do mpress -q %%A +cd ..\..\..\plugins +for %%A in (*.dll) do upx -9 -q %%A +for %%A in (*.x64) do mpress -q %%A +cd ..\..\build +set PATH=%OPATH% |