|
|
|
@ -18,6 +18,7 @@ set QT_BIN=%QT_DIR%\bin |
|
|
|
|
|
|
|
|
|
set PROGRAMS_FILE_PATH=C:\Program Files |
|
|
|
|
|
|
|
|
|
set SEVEN_ZIP_EXE="%PROGRAMS_FILE_PATH%\7-Zip\7z.exe" |
|
|
|
|
set GIT_BIN=%PROGRAMS_FILE_PATH%\Git\bin |
|
|
|
|
set VS_BIN=%PROGRAMS_FILE_PATH%\Microsoft Visual Studio 9.0\VC\bin |
|
|
|
|
set WIN_SDK_BIN=%PROGRAMS_FILE_PATH%\Microsoft SDKs\Windows\v6.0A\Bin |
|
|
|
@ -37,7 +38,7 @@ REM is correct. This is important because installer |
|
|
|
|
REM pick up dll from this directory |
|
|
|
|
IF NOT EXIST "%QT_DIR%\lib\QtCore4.dll" GOTO EXIT_WITH_ERROR |
|
|
|
|
|
|
|
|
|
rmdir /S /Q %BUILD_DIR% |
|
|
|
|
REM rmdir /S /Q %BUILD_DIR% |
|
|
|
|
|
|
|
|
|
set EDITION=MNEMIS_EDITION |
|
|
|
|
|
|
|
|
@ -46,7 +47,9 @@ set EDITION=MNEMIS_EDITION |
|
|
|
|
%LRELEASE% Sankore_3.1.pro |
|
|
|
|
%LRELEASE% %BASE_QT_TRANSLATIONS_DIRECTORY%\translations.pro |
|
|
|
|
|
|
|
|
|
REM set /p VERSION= < build\win32\release\version |
|
|
|
|
set /p VERSION= < build\win32\release\version |
|
|
|
|
REM remove the last character that is a space |
|
|
|
|
set VERSION=%VERSION: =% |
|
|
|
|
REM git rev-list --tags --max-count=1 > tmp |
|
|
|
|
REM set /p LAST_TAG= < tmp |
|
|
|
|
REM erase tmp |
|
|
|
@ -78,3 +81,17 @@ set INSTALLER_PATH=.\install\win32\%INSTALLER_NAME%.exe |
|
|
|
|
|
|
|
|
|
call "%INNO_EXE%" "Sankore 3.1.iss" /F"%INSTALLER_NAME%" |
|
|
|
|
|
|
|
|
|
set INSTALL_DIRECTORY=install\win32\ |
|
|
|
|
|
|
|
|
|
xcopy *.pdf %INSTALL_DIRECTORY% |
|
|
|
|
cd %INSTALL_DIRECTORY% |
|
|
|
|
call %SEVEN_ZIP_EXE% a Open-Sankore_Windows_%VERSION%.zip *.exe *.pdf |
|
|
|
|
cd ..\..\ |
|
|
|
|
GOTO END |
|
|
|
|
|
|
|
|
|
:EXIT_WITH_ERROR |
|
|
|
|
echo "Error found" |
|
|
|
|
GOTO :EOF |
|
|
|
|
|
|
|
|
|
:END |
|
|
|
|
echo "Open-Sankore's build finished" |
|
|
|
|