From 6600fe588c2eaa907018c1cf2bf31fe113068c82 Mon Sep 17 00:00:00 2001 From: MuldeR Date: Sat, 11 Jan 2014 21:47:07 +0100 Subject: [PATCH] Fixed build script. --- z_build.bat | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/z_build.bat b/z_build.bat index 05f4882..dd5cadf 100644 --- a/z_build.bat +++ b/z_build.bat @@ -104,21 +104,22 @@ if exist "%~dp0\out\%OUT_NAME%.zip" ( REM /////////////////////////////////////////////////////////////////////////// REM // Create version tag REM /////////////////////////////////////////////////////////////////////////// -echo MediaInfoXP - Simple GUI for MediaInfo > "%OUT_NAME%.txt" -echo Built on %ISO_DATE%, at %TIME% >> "%OUT_NAME%.txt" -echo opyright (C) 2004-2014 LoRd_MuldeR ^ >> "%OUT_NAME%.txt" -echo. >> "%OUT_NAME%.txt" -echo MediaInfo(Lib) is Copyright (C) 2002-2014 MediaArea.net SARL. >> "%OUT_NAME%.txt" -echo. >> "%OUT_NAME%.txt" +echo MediaInfoXP - Simple GUI for MediaInfo > "%~dp0\out\%OUT_NAME%.txt" +echo Built %ISO_DATE%, %TIME% >> "%~dp0\out\%OUT_NAME%.txt" +echo Copyright (C) 2004-2014 LoRd_MuldeR ^ >> "%~dp0\out\%OUT_NAME%.txt" +echo. >> "%~dp0\out\%OUT_NAME%.txt" +echo MediaInfo(Lib) is Copyright (C) 2002-2014 MediaArea.net SARL. >> "%~dp0\out\%OUT_NAME%.txt" +echo. >> "%~dp0\out\%OUT_NAME%.txt" REM /////////////////////////////////////////////////////////////////////////// REM // Build the package REM /////////////////////////////////////////////////////////////////////////// pushd "%PACK_PATH% -"%~dp0\etc\zip.exe" -9 -r -z "%~dp0\out\%OUT_NAME%.zip" "*.*" < "%OUT_NAME%.txt" +"%~dp0\etc\zip.exe" -9 -r -z "%~dp0\out\%OUT_NAME%.zip" "*.*" < "%~dp0\out\%OUT_NAME%.txt" popd rmdir /Q /S "%PACK_PATH%" attrib +R "%~dp0\out\%OUT_NAME%.zip" +del "%~dp0\out\%OUT_NAME%.txt" REM /////////////////////////////////////////////////////////////////////////// REM // COMPLETE