markus / appCast_SNI.bat @ 77cdac33
이력 | 보기 | 이력해설 | 다운로드 (2.21 KB)
1 |
@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 |
rem set hostbaseUrl=http://10.11.142.22:8080/MarkusUpdate/ |
19 |
set hostbaseUrl=http://sdms.co.kr:8080/MarkusUpdate/ |
20 |
rem set hostbaseUrl=http://10.11.132.77:5977/MarkusUpdate/ |
21 |
set updateVersion=%1 |
22 |
|
23 |
IF [%hostbaseUrl%]==[] goto :ERROR |
24 |
if [%updateVersion%]==[] goto :ERROR |
25 |
|
26 |
echo "Update Version %updateVersion%" |
27 |
|
28 |
rem set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast\%TimeStamp% |
29 |
set APPCAST_PUBLISH_PATH=%cd%\publish\AppCast_SNI\ |
30 |
SET MARKUS_PUBLISH_PATH=%cd%\Setup\Release_Default |
31 |
|
32 |
echo "current : %current_dir%" |
33 |
echo "APPCAST PUBLISH PATH : %APPCAST_PUBLISH_PATH%" |
34 |
|
35 |
IF NOT EXIST %APPCAST_PUBLISH_PATH%\. MKDIR %APPCAST_PUBLISH_PATH% |
36 |
|
37 |
IF "%2"=="" GOTO Continue |
38 |
|
39 |
IF NOT EXIST %LocalAppData%\netsparkle\NetSparkle_Ed25519.pub ( |
40 |
echo "generate-keys pass" |
41 |
del %LocalAppData%\netsparkle\*.* /q |
42 |
rem .\AppCast\generate_appcast.exe --key-path %APPCAST_PUBLISH_PATH%Keys |
43 |
.\AppCast\generate_appcast.exe --generate-keys |
44 |
) |
45 |
|
46 |
SET SIGNTOOLPATH="C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\signtool.exe" |
47 |
set SolutionPath=%cd% |
48 |
SET SIGNPATH=%SolutionPath%\Sign\www.doftech.co.kr.pfx |
49 |
|
50 |
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\*.exe |
51 |
%SIGNTOOLPATH% sign /v /f %SIGNPATH% /p Doftech1073# /tr http://timestamp.digicert.com /td sha256 /fd sha256 %MARKUS_PUBLISH_PATH%\Plugin\*.exe |
52 |
|
53 |
start %APPCAST_PUBLISH_PATH% |
54 |
|
55 |
:Continue |
56 |
|
57 |
xcopy /s %cd%\INI\MARKUS_SNI.ini %MARKUS_PUBLISH_PATH%\MARKUS.* /Y /F |
58 |
|
59 |
Xcopy %cd%\Accessories\* %APPCAST_PUBLISH_PATH% /I /E /S /Y /F |
60 |
|
61 |
.\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 |
:ERROR |
64 |
echo arg1 exits |
65 |
echo ex : appCast.bat http://hostname:port x.x.x |