Skip to content

SDU-Mirrors/github-release-downloader

Repository files navigation

github-release-downloader

A python script to download the latest GitHub Releases.

Usage

usage: main.py [-h] [--repo-file REPO_FILE]
               [--base-dir BASE_DIR] [-v] [--clean-up]

optional arguments:
  -h, --help            show this help message and exit
  --repo-file REPO_FILE
                        the path to a repo file
  --base-dir BASE_DIR   the path to the base dir
  -v, --version         show the version and exit
  --clean-up            whether to delete old artifacts or not

Specify a GitHub credential

Set the environment variable HTTP_BASIC_AUTH in the form of username:token.

See also personal access tokens. Generally, you should only grant the public_repo access to the token.

Use http proxy

Set the environment variable HTTP_PROXY to an HTTP proxy.

Note: A certain bug of Python might cause issues with HTTP proxies, which was later fixed in Python 3.12.

License

MIT