@@ -43,111 +43,15 @@ mkdir %INST_TEMP_DIR%
4343SET /p PYTHONSCRIPTVERSION = < %INST_TEMP_DIR% \version.txt
4444
4545
46- echo Generating WiX information for ..\pythonlib\full
47- heat dir ..\pythonlib\full -ag -cg CG_PythonLib -dr D_PythonScript -var var.pylibSource -t changeDirLib.xsl -o %INST_TEMP_DIR% \fullLib.wxs
48- if NOT [%ERRORLEVEL% ]== [0] (
49- goto error
50- )
51-
52- echo Compiling python lib WiX source
53- wix build %INST_TEMP_DIR% \fullLib.wxs -o %INST_TEMP_DIR% \fullLib.wixlib -d pylibSource=..\pythonlib\full -arch %MSI_ARCH%
54- if NOT [%ERRORLEVEL% ]== [0] (
55- goto error
56- )
57-
58- echo Generating WiX information for ..\pythonlib\full_dll%NAME_ADDON%
59- heat dir ..\pythonlib\full_dll%NAME_ADDON% -ag -cg CG_PythonLibDll -dr D_PythonScript -var var.pylibSource -t changeDirLib.xsl -o %INST_TEMP_DIR% \fullLib_dll%NAME_ADDON% .wxs
60- if NOT [%ERRORLEVEL% ]== [0] (
61- goto error
62- )
63-
64- echo Compiling python pyd lib WiX source
65- wix build %INST_TEMP_DIR% \fullLib_dll%NAME_ADDON% .wxs -o %INST_TEMP_DIR% \fullLib_dll%NAME_ADDON% .wixlib -d pylibSource=..\pythonlib\full_dll%NAME_ADDON% -arch %MSI_ARCH%
66- if NOT [%ERRORLEVEL% ]== [0] (
67- goto error
68- )
69-
70- echo Generating WiX information for ..\pythonlib\tcl
71- heat dir ..\pythonlib\tcl -ag -cg CG_PythonTclTkLib -dr D_PythonScript -var var.pylibSource -t changeDirLib.xsl -o %INST_TEMP_DIR% \tcl.wxs
72- if NOT [%ERRORLEVEL% ]== [0] (
73- goto error
74- )
75-
76- echo Compiling tcl lib WiX source
77- wix build %INST_TEMP_DIR% \tcl.wxs -o %INST_TEMP_DIR% \tcl.wixlib -d pylibSource=..\pythonlib\tcl -arch %MSI_ARCH%
78- if NOT [%ERRORLEVEL% ]== [0] (
79- goto error
80- )
81-
82- echo Generating WiX information for ..\pythonlib\tcl_dll%NAME_ADDON%
83- heat dir ..\pythonlib\tcl_dll%NAME_ADDON% -ag -cg CG_PythonTclTkLibDll -dr D_PythonScript -var var.pylibSource -t changeDirLib.xsl -o %INST_TEMP_DIR% \tcl_dll%NAME_ADDON% .wxs
84- if NOT [%ERRORLEVEL% ]== [0] (
85- goto error
86- )
87-
88- echo Compiling tcl lib WiX source
89- wix build %INST_TEMP_DIR% \tcl_dll%NAME_ADDON% .wxs -o %INST_TEMP_DIR% \tcl_dll%NAME_ADDON% .wixlib -d pylibSource=..\pythonlib\tcl_dll%NAME_ADDON% -arch %MSI_ARCH%
90- if NOT [%ERRORLEVEL% ]== [0] (
91- goto error
92- )
93-
94- echo Generating WiX information for ..\PythonScript\scripts\Samples
95- heat dir ..\scripts\Samples -ag -cg CG_SampleScripts -dr D_PythonScript -var var.scriptSource -t changeDirSampleScripts.xsl -o %INST_TEMP_DIR% \sampleScripts.wxs
96- if NOT [%ERRORLEVEL% ]== [0] (
97- goto error
98- )
99-
100- echo Compiling Sample Scripts WiX source
101- wix build %INST_TEMP_DIR% \sampleScripts.wxs -o %INST_TEMP_DIR% \sampleScripts.wixlib -d scriptSource=..\scripts\Samples -arch %MSI_ARCH%
102- if NOT [%ERRORLEVEL% ]== [0] (
103- goto error
104- )
105-
106-
107- echo Generating WiX information for ..\PythonScript\python_tests
108- heat dir ..\PythonScript\python_tests -ag -cg CG_UnitTests -dr D_PythonScript -var var.unittestSource -t changeDirTests.xsl -o %INST_TEMP_DIR% \unittests.wxs -platform=%NAME_ADDON%
109- if NOT [%ERRORLEVEL% ]== [0] (
110- goto error
111- )
112-
113- echo Compiling Unit test WiX source
114- wix build %INST_TEMP_DIR% \unittests.wxs -o %INST_TEMP_DIR% \unittests.wixlib -d unittestSource=..\PythonScript\python_tests -arch %MSI_ARCH%
115- if NOT [%ERRORLEVEL% ]== [0] (
116- goto error
117- )
118-
119- echo Generating WiX information for ..\docs\build\html
120- heat dir ..\docs\build\html -ag -cg CG_HtmlDocs -dr D_PythonScript -var var.htmldocsSource -t changeDirHtmlDoc.xsl -o %INST_TEMP_DIR% \htmldoc.wxs -platform=%NAME_ADDON%
121- if NOT [%ERRORLEVEL% ]== [0] (
122- goto error
123- )
124-
125- echo Compiling Html doc WiX source
126- wix build %INST_TEMP_DIR% \htmldoc.wxs -o %INST_TEMP_DIR% \htmldoc.wixlib -d htmldocsSource=..\docs\build\html -arch %MSI_ARCH%
127- if NOT [%ERRORLEVEL% ]== [0] (
128- goto error
129- )
130-
13146cd ..\packages
13247echo add UI extension globally
13348wix extension add -g WixToolset.UI.wixext
13449wix extension list -g
13550cd ..\installer
13651
13752
138- echo Compiling main PythonScript installer
139- wix build pythonscript.wxs -o %INST_TEMP_DIR% \pythonscript.wixlib -d version=%PYTHONSCRIPTVERSION% -d baseDir=.. -d pythonDir=%PYTHONBUILDDIR% -d variantDir=%PYTHONSCRIPTDLLDIR% -d Platform=%MSI_ARCH% -arch %MSI_ARCH% -ext " WixToolset.UI.wixext"
140- if NOT [%ERRORLEVEL% ]== [0] (
141- goto error
142- )
143-
144-
145- echo Linking installer - generating MSI
146- IF NOT EXIST " build\%PYTHONSCRIPTVERSION% " (
147- mkdir build\%PYTHONSCRIPTVERSION%
148- )
149-
150- wix build %INST_TEMP_DIR% \pythonscript.wixlib %INST_TEMP_DIR% \fullLib.wixlib %INST_TEMP_DIR% \fullLib_dll%NAME_ADDON% .wixlib %INST_TEMP_DIR% \unittests.wixlib %INST_TEMP_DIR% \tcl.wixlib %INST_TEMP_DIR% \tcl_dll%NAME_ADDON% .wixlib %INST_TEMP_DIR% \sampleScripts.wixlib %INST_TEMP_DIR% \htmldoc.wixlib -o build\%PYTHONSCRIPTVERSION% \PythonScript_%PYTHONSCRIPTVERSION%%NAME_ADDON% .msi -ext " WixToolset.UI.wixext"
53+ echo Compiling PythonScript installer
54+ wix build pythonscript.wxs -o build\%PYTHONSCRIPTVERSION% \PythonScript_%PYTHONSCRIPTVERSION%%NAME_ADDON% .msi -d version=%PYTHONSCRIPTVERSION% -d baseDir=.. -d pythonDir=%PYTHONBUILDDIR% -d variantDir=%PYTHONSCRIPTDLLDIR% -d Platform=%MSI_ARCH% -d nameAddon=%NAME_ADDON% -arch %MSI_ARCH% -ext " WixToolset.UI.wixext"
15155if NOT [%ERRORLEVEL% ]== [0] (
15256 goto error
15357)
0 commit comments