Warning, /office/calligra/windows/calligra_installer/build_msi.bat is written in an unsupported language. File is not indexed.
0001 :: Copyright (c) 2011-2012 KO GmbH. All rights reserved. 0002 :: Copyright (c) 2011-2012 Stuart Dickson <stuartmd@kogmbh.com> 0003 :: 0004 :: The use and distribution terms for this software are covered by the 0005 :: Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php) 0006 :: which can be found in the file CPL.TXT at the root of this distribution. 0007 :: By using this software in any fashion, you are agreeing to be bound by 0008 :: the terms of this license. 0009 :: 0010 :: You must not remove this notice, or any other, from this software. 0011 :: ------------------------------------------------------------------------ 0012 :: 0013 :: build_msi.bat 0014 :: 0015 :: 0016 0017 @echo off 0018 pushd %~dp0 0019 set PATH=%WIX_BIN%;%PATH% 0020 del "%C2WINSTALL_OUTPUT%\*.wixobj" 0021 0022 :: get version info from the header file 0023 python getcalligraversion.py >tempverh.bat 0024 call tempverh.bat 0025 echo Calligra Version String: %C2WINSTALL_VERSIONSTRING% 0026 echo According to header, version is: %C2WINSTALL_HEADERVERSIONSEP% 0027 echo Filename will be of form calligra_%C2WINSTALL_HEADERVERSION%_x.x.x.x 0028 set C2WINSTALL_INSTALLER_SUFFIX=%C2WINSTALL_HEADERVERSION%_ 0029 0030 set C2WINSTALL_TEMP_INSTALLER=%C2WINSTALL_OUTPUT%\calligra%C2WINSTALL_INSTALLER_SUFFIX%%C2WINSTALL_VERSION% 0031 0032 :: check for existence of built executables 0033 :: this way we do not need to rely on the user setting correct parameters 0034 cscript //Nologo identifybuiltcomponents.vbs >tempbuiltapps.bat 0035 call tempbuiltapps.bat 0036 0037 :: call %~dp0run_heat.bat 0038 candle.exe %~dp0HeatFragment.wxs %~dp0calligra.wxs %~dp0res\wix_snippets\BundleVC2010x86.wxs %~dp0res\UIExtension\CustomUI_Mondo.wxs %~dp0res\UIExtension\CustomProgressDlg.wxs %~dp0res\UIExtension\CustomWelcomeDlg.wxs %~dp0res\UIExtension\CustomMaintenanceWelcomeDlg.wxs %~dp0res\UIExtension\CustomResumeDlg.wxs -out %C2WINSTALL_OUTPUT%\\ 0039 0040 echo. 0041 echo Running light... 0042 light.exe -loc en-us.wxl -cultures:en-us -nologo "%C2WINSTALL_OUTPUT%\*.wixobj" -out "%C2WINSTALL_TEMP_INSTALLER%.msi" -ext WixUIExtension 0043 0044 :: echo Running shasum... 0045 %KDEROOT%\dev-utils\bin\sha1sum %C2WINSTALL_TEMP_INSTALLER%.msi > %C2WINSTALL_TEMP_INSTALLER%.sh1 0046 :: Delete intermediate file 0047 :: It is possible for candle to fail without an error and hence 0048 :: we should delete the wixobj file in case light.exe picks up 0049 :: an old version 0050 :: 0051 echo Complete. 0052 echo. 0053 popd