개정판 c34f16d7
issue #000: 설치 파일 이름에 빌드 버전 포함시킴
Change-Id: Id4f6d6cde014045acef82d92b52120889a8f32c0
build.bat | ||
---|---|---|
10 | 10 |
pyinstaller App.spec --onedir -p "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Lib\site-packages\PyQt5" -w --log-level=DEBUG --hidden-import=tkinter,pyqtgraph -y |
11 | 11 |
IF %ERRORLEVEL% NEQ 0 goto :ERROR |
12 | 12 |
|
13 |
Del Setup\*.wixpdb |
|
14 |
Del Setup\*.wixobj |
|
15 |
Del Setup\*.msi |
|
16 |
|
|
17 |
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 "c:\Temp\workspace\HYTOS\Setup\*.exe" |
|
18 |
|
|
19 |
%CANDLE% ".\HYTOS.wxs" -out .\Setup\ |
|
20 |
IF %ERRORLEVEL% NEQ 0 goto :ERROR |
|
21 |
%LIGHT% -out ".\Setup\HYTOS-%1.msi" ".\Setup\HYTOS.wixobj" -ext WixUIExtension -ext WixUtilExtension |
|
22 |
IF %ERRORLEVEL% NEQ 0 goto :ERROR |
|
23 |
|
|
24 |
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 "c:\Temp\workspace\HYTOS\Setup\*.msi" |
|
25 |
|
|
26 |
REM deploy artifacts |
|
27 |
..\curl.exe -uadmin:dof1073# -X PUT "http://www.devdoftech.co.kr:9081/artifactory/HYTOS/Setup/HYTOS-%1.msi" -T ".\Setup\HYTOS-%1.msi" |
|
28 |
IF %ERRORLEVEL% NEQ 0 goto :ERROR |
|
29 |
|
|
30 | 13 |
:EOF |
31 | 14 |
ECHO process completed |
32 |
REM exit
|
|
15 |
exit |
|
33 | 16 |
|
34 | 17 |
:ERROR |
35 |
REM exit 1 |
|
18 |
exit 1 |
package.bat | ||
---|---|---|
1 |
SET yyyymmdd=%DATE:~0,4%-%DATE:~5,2%-%DATE:~8,2% |
|
2 |
SET hhmmss=%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2% |
|
3 |
SET hhmmss=%hhmmss: =0% |
|
4 |
|
|
5 |
SET CANDLE="C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe" |
|
6 |
SET LIGHT="C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe" |
|
7 |
SET SIGNTOOLPATH="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe" |
|
8 |
SET SIGNPATH="c:\cert\www.doftech.co.kr.pfx" |
|
9 |
|
|
10 |
Del Setup\*.wixpdb |
|
11 |
Del Setup\*.wixobj |
|
12 |
Del Setup\*.msi |
|
13 |
|
|
14 |
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 "c:\Temp\workspace\HYTOS\Setup\*.exe" |
|
15 |
|
|
16 |
%CANDLE% ".\HYTOS.wxs" -out .\Setup\ |
|
17 |
IF %ERRORLEVEL% NEQ 0 goto :ERROR |
|
18 |
%LIGHT% -out ".\Setup\HYTOS-%1.msi" ".\Setup\HYTOS.wixobj" -ext WixUIExtension -ext WixUtilExtension |
|
19 |
IF %ERRORLEVEL% NEQ 0 goto :ERROR |
|
20 |
|
|
21 |
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 "c:\Temp\workspace\HYTOS\Setup\*.msi" |
|
22 |
|
|
23 |
REM deploy artifacts |
|
24 |
..\curl.exe -uadmin:dof1073# -X PUT "http://www.devdoftech.co.kr:9081/artifactory/HYTOS/Setup/HYTOS-%1.msi" -T ".\Setup\HYTOS-%1.msi" |
|
25 |
IF %ERRORLEVEL% NEQ 0 goto :ERROR |
|
26 |
|
|
27 |
:EOF |
|
28 |
ECHO process completed |
|
29 |
REM exit |
|
30 |
|
|
31 |
:ERROR |
|
32 |
REM exit 1 |
version.rc | ||
---|---|---|
6 | 6 |
ffi=FixedFileInfo( |
7 | 7 |
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4) |
8 | 8 |
# Set not needed items to zero 0. |
9 |
filevers=(1, 0, 0, 0),
|
|
10 |
prodvers=(1, 0, 0, 0),
|
|
9 |
filevers=(1,0,$BUILD_NUMBER,0),
|
|
10 |
prodvers=(1,0,$BUILD_NUMBER,0),
|
|
11 | 11 |
# Contains a bitmask that specifies the valid bits 'flags'r |
12 | 12 |
mask=0x3f, |
13 | 13 |
# Contains a bitmask that specifies the Boolean attributes of the file. |
... | ... | |
31 | 31 |
u'040904B0', |
32 | 32 |
[StringStruct(u'CompanyName', u'SECL'), |
33 | 33 |
StringStruct(u'FileDescription', u'Hydraulic Calculator'), |
34 |
StringStruct(u'FileVersion', u'1.0.0'),
|
|
34 |
StringStruct(u'FileVersion', u'1.0.$BUILD_NUMBER'),
|
|
35 | 35 |
StringStruct(u'InternalName', u'HYTOS'), |
36 | 36 |
StringStruct(u'LegalCopyright', u'Copyright(c) SECL'), |
37 | 37 |
StringStruct(u'OriginalFilename', u'HYTOS.exe'), |
38 | 38 |
StringStruct(u'ProductName', u'HYTOS'), |
39 |
StringStruct(u'ProductVersion', u'1.0.0')])
|
|
39 |
StringStruct(u'ProductVersion', u'1.0.$BUILD_NUMBER')])
|
|
40 | 40 |
]), |
41 | 41 |
VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) |
42 | 42 |
] |
내보내기 Unified diff