프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / appCast_All_Build.bat @ master

이력 | 보기 | 이력해설 | 다운로드 (1.59 KB)

1
@echo off
2

    
3
set hostbaseUrl=http://172.20.120.141:5977/MarkusUpdate/
4
set updateVersion=%1
5

    
6
IF [%hostbaseUrl%]==[] goto :ERROR
7
if [%updateVersion%]==[] goto :ERROR
8

    
9
echo "Update Version %updateVersion%"
10

    
11
set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast_Daelim\
12
SET MARKUS_PUBLISH_PATH=%cd%\Setup\Release_Default
13

    
14
echo "current  : %current_dir%"
15
echo "APPCAST PATH : %APPCAST_PUBLISH_PATH%"
16
echo "AppCast Path : %current_dir:"=%\%APPCAST_PUBLISH_PATH:"=%"
17
echo "Publish Markus : %current_dir:"=%\%MARKUS_PUBLISH_PATH:"=%"
18

    
19
IF NOT EXIST %LocalAppData%\netsparkle\NetSparkle_Ed25519.pub (
20
echo "generate-keys pass"
21
del %LocalAppData%\netsparkle\*.* /q
22
	.\AppCast\generate_appcast.exe --key-path %APPCAST_PUBLISH_PATH%Keys
23
	.\AppCast\generate_appcast.exe --generate-keys
24
)
25

    
26
IF NOT EXIST %APPCAST_PUBLISH_PATH%\. MKDIR %APPCAST_PUBLISH_PATH%
27

    
28
SET SIGNTOOLPATH="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe"
29
set SolutionPath=%cd%
30
SET SIGNPATH=%SolutionPath%\Sign\www.doftech.co.kr.pfx
31

    
32
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\*.exe
33
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\Plugin\*.exe
34

    
35
 copy %cd%\INI\Web.config %APPCAST_PUBLISH_PATH%\web.config /Y
36
   
37

    
38
.\AppCast\generate_appcast.exe -u %hostbaseUrl% -p %cd%\ChangeLog -a %APPCAST_PUBLISH_PATH% -e * -b %MARKUS_PUBLISH_PATH% -o windows -n Markus -x -v %updateVersion%
39

    
40
start %APPCAST_PUBLISH_PATH%
41

    
42
:ERROR
43
echo arg1 arg2 exits
44
echo ex : appCast.bat http://hostname:port x.x.x
클립보드 이미지 추가 (최대 크기: 500 MB)