OSDN Git Service

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