프로젝트

일반

사용자정보

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

markus / appCast.bat @ e7194723

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

1 9d5b4bc2 taeseongkim
@echo off
2
rem datetime stamp file name
3
4
@REM use FOR /F to 'break out' the components of %DATE% and %TIME%, assuming 'yyyy/mm/dd' format date i.e.
5
6
for /F "tokens=1-6* delims=.:-/ " %%i IN ("%DATE% %TIME%") DO Set "YYYY=%%i"& Set "MM=%%j"& Set "DD=%%k"& Set "HH=%%l"& Set "MI=%%m"& Set "SS=%%n"
7
8
@REM Switch the year and day if appropriate
9
10
IF NOT "X%DD:~2%" == "X" Set "YYYY=%DD%"& Set "DD=%YYYY%"
11
12
Set "TimeStamp=%YYYY%%MM%%DD%%HH%%MI%%SS%"
13
14
rem datetime stamp file name
15
16
rem version
17
18 e7194723 taeseongkim
set hostbaseUrl=%3
19
set updateVersion=%1
20 9d5b4bc2 taeseongkim
21
IF [%hostbaseUrl%]==[] goto :ERROR
22
if [%updateVersion%]==[] goto :ERROR
23
24
echo "Update Version %updateVersion%"
25
26
rem set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast\%TimeStamp%
27 e7194723 taeseongkim
set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast_Local\
28 9d5b4bc2 taeseongkim
SET MARKUS_PUBLISH_PATH=%cd%\Setup\Release_Default
29
30
echo "current  : %current_dir%"
31 e7194723 taeseongkim
echo "APPCAST PUBLISH PATH : %APPCAST_PUBLISH_PATH%"
32 9d5b4bc2 taeseongkim
33
IF NOT EXIST %LocalAppData%\netsparkle\NetSparkle_Ed25519.pub (
34
echo "generate-keys pass"
35
del %LocalAppData%\netsparkle\*.* /q
36
	.\AppCast\generate_appcast.exe --key-path %APPCAST_PUBLISH_PATH%Keys
37
	.\AppCast\generate_appcast.exe --generate-keys
38
)
39
40
IF NOT EXIST %APPCAST_PUBLISH_PATH%\. MKDIR %APPCAST_PUBLISH_PATH%
41
42 e7194723 taeseongkim
IF "%2"=="" GOTO Continue
43
44
45
SET SIGNTOOLPATH="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe"
46
set SolutionPath=%cd%
47
SET SIGNPATH=%SolutionPath%\Sign\www.doftech.co.kr.pfx
48
49
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\*.exe
50
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\Plugin\*.exe
51
52
start %APPCAST_PUBLISH_PATH%
53
54
:Continue 
55
56
xcopy /s %cd%\INI\MARKUS.ini %MARKUS_PUBLISH_PATH%\MARKUS.*  /Y /F
57
58
Xcopy %cd%\Accessories\* %APPCAST_PUBLISH_PATH% /I /E /S /Y /F 
59
   
60
61 9d5b4bc2 taeseongkim
.\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%
62
63
64
:ERROR
65 e7194723 taeseongkim
echo arg1 arg2  arg3 exits
66
echo parameter ex : appCast.bat version newSignFlag hostUrl
클립보드 이미지 추가 (최대 크기: 500 MB)