-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild_pime_installer.bat
34 lines (22 loc) · 1.06 KB
/
build_pime_installer.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cd installer\wix\McBopomofo
cmd /c del /F /Q bin
wix extension add -g WixToolset.Util.wixext/4.0.0
wix extension add -g WixToolset.Bal.wixext/4.0.0
wix extension add -g WixToolset.UI.wixext/4.0.0
echo "Start to build the MSI file..."
@REM candle.exe McBopomofo.wxs -out McBopomofo.wixobj
@REM @if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
@REM cmd /c dir
@REM light.exe McBopomofo.wixobj -out bin\Release\McBopomofo.msi -ext WixUIExtension -ext WixUtilExtension
wix build McBopomofo.wxs -ext WixToolset.Util.wixext/4.0.0 -ext WixToolset.UI.wixext/4.0.0
@if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
@REM cmd /c del /F /Q McBopomofo.wixobj
@REM echo "Start to build the Boostrap bundle..."
cd ..\Bundle
@REM cmd /c del /F /Q bin
@REM candle.exe Bundle.wxs -out Bundle.wixobj -ext WixBalExtension
@REM light.exe Bundle.wixobj -out bin\Release\McBopomofo.exe -ext WixBalExtension -ext WixUtilExtension
@REM del Bundle.wixobj
wix build Bundle.wxs -out bin\Release\McBopomofo.exe -ext WixToolset.Util.wixext/4.0.0 -ext WixToolset.Bal.wixext/4.0.0
cmd /c explorer "bin\Release"
cd ..\..\..