call SetVersion.cmd
set DISTDIR=.\build\Releases
-
-set GITHUB_USER=sdottaka
-set GITHUB_REPO=winmerge-v2-jp
+set GH_REPO=sdottaka/winmerge-v2-jp
(
@echo off
echo virustotal.com's result:
echo.
for /F "delims=" %%f in ('type "%DISTDIR%\files.txt"') do (
- for /F %%h in ('certutil -hashfile %%f SHA256 ^| findstr -v hash') do echo %%~nxf: https://www.virustotal.com/en/file/%%h/analysis/
+ 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/
)
@echo on
) > _tmp_.txt
-type _tmp_.txt | c:\tools\github-release release --tag %APPVER% --name "WinMerge %MAJOR%.%MINOR%.%REVISION%+-jp-%PATCHLEVEL%" --description - --pre-release
+gh release create %APPVER% -p -F _tmp_.txt -t "WinMerge %MAJOR%.%MINOR%.%REVISION%+-jp-%PATCHLEVEL%"
del _tmp_.txt
for /F "delims=" %%f in ('type "%DISTDIR%\files.txt"') do (
- c:\tools\github-release upload -t %APPVER% -n %%~nxf -f %%f
+ gh release upload %APPVER% %%f
)