OSDN Git Service

Merge with stable
[winmerge-jp/winmerge-jp.git] / UploadToGithub.cmd
1 cd /d "%~dp0"
2
3 call SetVersion.cmd
4 set DISTDIR=.\build\Releases
5
6 set GITHUB_USER=sdottaka
7 set GITHUB_REPO=winmerge-v2-jp
8
9 (
10 @echo off
11 echo virustotal.com's result:
12 echo.
13 for /F "delims=" %%f in ('type "%DISTDIR%\files.txt"') do (
14   for /F %%h in ('certutil -hashfile %%f SHA256 ^| findstr -v hash') do echo %%~nxf: https://www.virustotal.com/en/file/%%h/analysis/
15 )
16 @echo on
17 ) > _tmp_.txt
18
19 type _tmp_.txt | c:\tools\github-release release --tag %APPVER% --name "WinMerge %MAJOR%.%MINOR%.%REVISION%+-jp-%PATCHLEVEL%" --description - --pre-release 
20
21 del _tmp_.txt
22
23 for /F "delims=" %%f in ('type "%DISTDIR%\files.txt"') do (
24   c:\tools\github-release upload -t %APPVER% -n %%~nxf -f %%f
25 )
26