- Replace
OWNERNAME
andREPONAME
with the Owner's username and Repository name respectively - Change
"browser_download_url.*zip"
to the appropriate regex match pattern
- Use
curl
to get the JSON response for the latest release - Use
findstr
to find the line containing file URL - Use
set
and:=
to extract the URL - Use
curl
to download it (alternatives are OK, but curl is built-in)
gethub.bat