forked from caqtdm/caqtdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
caQtDM_Build_Package.bat
executable file
·50 lines (38 loc) · 1.68 KB
/
caQtDM_Build_Package.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
call caQtDM_Env.bat
echo =============================================================================================
echo.
echo binaries will be installed in %QTDM_BININSTALL%
echo libraries will be installed in %QTDM_LIBINSTALL%
echo plugins will be installed in %QTDM_LIBINSTALL%/designer
echo.
set PATH=%PATH%;%WIXHOME%
set WINCAQTDM_COLLECT=%CAQTDM_COLLECT:/=\%
cd .\caQtDM_Viewer\package\windows
IF %SELCTION%==1 GOTO BUILDQT4_32
IF %SELCTION%==2 GOTO BUILDQT5_64
IF %SELCTION%==3 GOTO BUILDQT5_32
:BUILDQT4_32
IF EXIST .\project (cd project && del /q /f /s *.*) ELSE (mkdir project && cd project)
candle ../caQtDM.wxs -ext WixUIExtension -ext WixUtilExtension
light caQtDM.wixobj -ext WixUIExtension -ext WixUtilExtension
copy caQtDM.msi %WINCAQTDM_COLLECT%
signtool sign /fd SHA256 /n %CAQTDM_SIGNER% /t %TIMESTAPER% %WINCAQTDM_COLLECT%\caQtDM.msi
GOTO FINISHED
:BUILDQT5_64
IF EXIST .\project_x64 (cd project_x64 && del /q /f /s *.*) ELSE (mkdir project_x64 && cd project_x64)
candle ../caQtDM_x64.wxs -ext WixUIExtension -ext WixUtilExtension
light caQtDM_x64.wixobj -ext WixUIExtension -ext WixUtilExtension
copy caQtDM_x64.msi %WINCAQTDM_COLLECT%
signtool sign /fd SHA256 /n %CAQTDM_SIGNER% /t %TIMESTAPER% %WINCAQTDM_COLLECT%\caQtDM_x64.msi
GOTO FINISHED
:BUILDQT5_32
IF EXIST .\project_x86 (cd project_x86 && del /q /f /s *.*) ELSE (mkdir project_x86 && cd project_x86)
candle ../caQtDM_x86.wxs -ext WixUIExtension -ext WixUtilExtension
light caQtDM_x86.wixobj -ext WixUIExtension -ext WixUtilExtension
copy caQtDM_x86.msi %WINCAQTDM_COLLECT%
signtool sign /fd SHA256 /n %CAQTDM_SIGNER% /t %TIMESTAPER% %WINCAQTDM_COLLECT%\caQtDM_x86.msi
GOTO FINISHED
:FINISHED
cd ..\..\..\..
pause