From d041bdd7aa6b511987f56b7afae293ea1a603220 Mon Sep 17 00:00:00 2001 From: Anatoly Mihalchenko Date: Wed, 5 Oct 2011 15:51:34 +0300 Subject: [PATCH] Creation of installation package under Window 7 platform --- Sankore 3.1.iss | 4 +++ release.win7.vc9.bat | 66 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 release.win7.vc9.bat diff --git a/Sankore 3.1.iss b/Sankore 3.1.iss index bf3b7cf7..7237aadb 100644 --- a/Sankore 3.1.iss +++ b/Sankore 3.1.iss @@ -47,6 +47,10 @@ Type: files ; Name: "{app}\*.dll" Source: "..\Sankore-ThirdParty\microsoft\vcredist_x86.exe"; DestDir:"{tmp}" Source: ".\build\win32\release\product\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs +;OpenSSL +Source: "..\Sankore-ThirdParty\openssl\win32\libeay32.dll"; DestDir:"{app}"; Flags: ignoreversion +Source: "..\Sankore-ThirdParty\openssl\win32\ssleay32.dll"; DestDir:"{app}"; Flags: ignoreversion + ;Qt base dll Source: "..\Qt-sankore3.1\lib\QtScript4.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "..\Qt-sankore3.1\lib\QtGui4.dll"; DestDir: "{app}"; Flags: ignoreversion diff --git a/release.win7.vc9.bat b/release.win7.vc9.bat new file mode 100644 index 00000000..a8e00b47 --- /dev/null +++ b/release.win7.vc9.bat @@ -0,0 +1,66 @@ +REM -------------------------------------------------------------------- +REM This program is free software: you can redistribute it and/or modify +REM it under the terms of the GNU General Public License as published by +REM the Free Software Foundation, either version 3 of the License, or +REM (at your option) any later version. +REM +REM This program is distributed in the hope that it will be useful, +REM but WITHOUT ANY WARRANTY; without even the implied warranty of +REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +REM GNU General Public License for more details. +REM +REM You should have received a copy of the GNU General Public License +REM along with this program. If not, see . +REM --------------------------------------------------------------------- + +set QT_DIR=..\Qt-sankore3.1 +set QT_BIN=%QT_DIR%\bin + +set GIT_BIN=C:\Program Files (x86)\Git\bin +set VS_BIN=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin +set WIN_SDK_BIN=C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bin +set INNO_EXE=C:\Program Files (x86)\Inno Setup 5\iscc.exe +set BUILD_DIR=build\win32\release + +set PATH=%QT_BIN%;%PATH%;%WIN_SDK_BIN%;%GIT_BIN% + +call "%VS_BIN%\vcvars32.bat" + +echo %PATH% + +REM this checks if the custom qt directory path +REM is correct. This is important because installer +REM pick up dll from this directory +IF NOT EXIST "..\Qt-sankore3.1\lib\QtCore4.dll" GOTO EXIT_WITH_ERROR + +rmdir /S /Q %BUILD_DIR% + +set EDITION=MNEMIS_EDITION + +"%QT_BIN%\qmake.exe" "DEFINES+=%EDITION%" + +set /p VERSION= < build\win32\release\version +git rev-list --tags --max-count=1 > tmp +set /p LAST_TAG= < tmp +erase tmp +git describe %LAST_TAG% > tmp +set /p LAST_TAG_VERSION=< tmp +erase tmp + +echo %VERSION% +echo %LAST_TAG_VERSION% + +if not v%VERSION%==%LAST_TAG_VERSION% GOTO EXIT_WITH_ERROR + +nmake release-install + +del ".\build\win32\release\product\Sankore 3.1.pdb" + +set INSTALLER_NAME=Sankore-3.1 + +set INSTALLER_PATH=.\install\win32\%INSTALLER_NAME%.exe + +call "%INNO_EXE%" "Sankore 3.1.iss" /F"%INSTALLER_NAME%" + +:EXIT_WITH_ERROR + echo ERROR