Skip to content

Instantly share code, notes, and snippets.

  • Replace OWNERNAME and REPONAME 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)

Single file

gethub.bat