Debian Codegraph @

scripts/build_installer.bat

raw
1 @echo off
2 REM ======================================================
3 REM WiX Installer build script
4 REM ------------------------------------------
5 REM Licensed under the terms of the BSD 3-Clause
6 REM (see datalab/LICENSE for details)
7 REM ======================================================
8 call %~dp0utils GetScriptPath SCRIPTPATH
9 call %FUNC% GetLibName LIBNAME
10 call %FUNC% SetPythonPath
11 call %FUNC% UsePython
12 call %FUNC% GetVersion VERSION
13
14 set ROOTPATH=%SCRIPTPATH%\..
15 set RSCPATH=%ROOTPATH%\resources
16 set WIXPATH=%ROOTPATH%\wix
17
18 echo Generating images for MSI installer...
19 set INKSCAPE_PATH="C:\Program Files\Inkscape\bin\inkscape.exe"
20 %INKSCAPE_PATH% "%RSCPATH%\WixUIDialog.svg" -o "temp.png" -w 493 -h 312
21 magick "temp.png" bmp3:"%WIXPATH%\dialog.bmp"
22 %INKSCAPE_PATH% "%RSCPATH%\WixUIBanner.svg" -o "temp.png" -w 493 -h 58
23 magick "temp.png" bmp3:"%WIXPATH%\banner.bmp"
24 del "temp.png"
25
26 echo Generating .wxs file for MSI installer...
27 %PYTHON% "%WIXPATH%\makewxs.py" DataLab %VERSION%
28
29 echo Building MSI installer...
30 wix build "%WIXPATH%\DataLab-%VERSION%.wxs" -ext WixToolset.UI.wixext
31
32 call %FUNC% EndOfScript