diff --git a/_Build.cmd b/_Build.cmd index 5b8d34f..e64fde4 100644 --- a/_Build.cmd +++ b/_Build.cmd @@ -2,6 +2,8 @@ SETLOCAL EnableDelayedExpansion +PUSHD "%~dp0" + SET APPNAME=WindowExtensions SET APPDESCRIPTION=Window Extensions Menu and HotKeys SET APPFILENAME=%APPNAME%.ahk @@ -9,4 +11,12 @@ SET APPVERSION=1.1.0.0 SET EXEFILENAME=%APPNAME%.exe SET ICONFILENAME=Icons\windows.ico +SET ZIPFILENAME=%APPNAME%.%APPVERSION%.zip + CALL BuildAHK.cmd -b "%~n0" -a "%APPNAME%" -d "%APPDESCRIPTION%" -f "%APPFILENAME%" -e "%EXEFILENAME%" -i "%ICONFILENAME%" -v "%APPVERSION%" %1 + +IF EXIST "%ZIPFILENAME%" DEL /Q "%ZIPFILENAME%" + +ZIP "%ZIPFILENAME%" "%APPNAME%.exe" "%APPNAME%.icl" + +POPD