1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 20:52:16 -05:00

add script for compressing binaries

This commit is contained in:
berkeviktor@aol.com 2011-07-27 07:14:34 +02:00
parent f46ddeaeca
commit f9c88e2df0
2 changed files with 20 additions and 0 deletions

View File

@ -2,6 +2,7 @@
set WDK_ROOT=c:\WinDDK\7600.16385.1 set WDK_ROOT=c:\WinDDK\7600.16385.1
call build-x86.bat call build-x86.bat
call build-x64.bat call build-x64.bat
call compress.bat
set PATH=%PROGRAMFILES(X86)%\Inno Setup 5 set PATH=%PROGRAMFILES(X86)%\Inno Setup 5
compil32 /cc xchat-wdk.iss compil32 /cc xchat-wdk.iss
pause pause

19
build/compress.bat Normal file
View File

@ -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%