diff --git a/etc/cat.exe b/etc/cat.exe new file mode 100644 index 0000000..33ee56f Binary files /dev/null and b/etc/cat.exe differ diff --git a/etc/setup/build.nfo b/etc/setup/build.nfo new file mode 100644 index 0000000..45577e4 --- /dev/null +++ b/etc/setup/build.nfo @@ -0,0 +1,32 @@ +The x264 encoder software is Copyright (C) 2003-2014 x264 project. +http://www.videolan.org/developers/x264.html + +The x265 encoder software is Copyright (C) 2013-2014 x265 project. +http://www.videolan.org/developers/x265.html + +Avisynth is Copyright (C) 2000 Ben Rudiak-Gould & subsequent developers. +http://avisynth.nl/index.php/Main_Page + +VapourSynth is Copyright (c) 2012-2014 Fredrik Mellbin. +http://www.vapoursynth.com/ + + +All third-party binaries included in this distribution package are redistributed +in full accordance with the GNU General Public License, version 2. + + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +http://www.gnu.org/licenses/gpl.html diff --git a/etc/zip.exe b/etc/zip.exe new file mode 100644 index 0000000..55be81d Binary files /dev/null and b/etc/zip.exe differ diff --git a/res/images/loading.gif b/res/images/loading.gif new file mode 100644 index 0000000..7c2ef2b Binary files /dev/null and b/res/images/loading.gif differ diff --git a/z_build.bat b/z_build.bat index 7e95a0e..dfa0372 100644 --- a/z_build.bat +++ b/z_build.bat @@ -139,6 +139,21 @@ if exist "%OUT_PATH%.sfx" ( set "OUT_PATH=%OUT_PATH%.new" goto GenerateOutfileName ) +if exist "%OUT_PATH%.zip" ( + set "OUT_PATH=%OUT_PATH%.new" + goto GenerateOutfileName +) + +REM /////////////////////////////////////////////////////////////////////////// +REM // Create Tag +REM /////////////////////////////////////////////////////////////////////////// +echo Simple x264/x265 Launcher - graphical front-end for x264 and x265 > "%PACK_PATH%\BUILD_TAG.txt" +echo Copyright (C) 2004-2014 LoRd_MuldeR ^ >> "%PACK_PATH%\BUILD_TAG.txt" +echo. >> "%PACK_PATH%\BUILD_TAG.txt" +echo Build #%BUILD_NO%, created on %ISO_DATE% at %ISO_TIME% >> "%PACK_PATH%\BUILD_TAG.txt" +echo. >> "%PACK_PATH%\BUILD_TAG.txt" +echo. >> "%PACK_PATH%\BUILD_TAG.txt" +"%~dp0\etc\cat.exe" "%~dp0\etc\setup\build.nfo" >> "%PACK_PATH%\BUILD_TAG.txt" REM /////////////////////////////////////////////////////////////////////////// REM // Build the installer @@ -151,6 +166,19 @@ if not "%ERRORLEVEL%"=="0" goto BuildError attrib +R "%OUT_PATH%.exe" attrib +R "%OUT_PATH%.sfx" + +REM /////////////////////////////////////////////////////////////////////////// +REM // Build ZIP package +REM /////////////////////////////////////////////////////////////////////////// +pushd "%PACK_PATH%" +"%~dp0\etc\zip.exe" -r -9 -z "%OUT_PATH%.zip" "*.*" < "%PACK_PATH%\BUILD_TAG.txt" +popd + +if not "%ERRORLEVEL%"=="0" goto BuildError + +REM /////////////////////////////////////////////////////////////////////////// +REM // Clean up +REM /////////////////////////////////////////////////////////////////////////// rmdir /Q /S "%PACK_PATH%" REM ///////////////////////////////////////////////////////////////////////////