A cross-platform Python script that automatically downloads the latest stable release of Brave Browser directly from GitHub Releases, without relying on brave.com.
This project is useful in environments where the official Brave website is blocked or inaccessible, but GitHub remains reachable.
- Fetches the latest stable Brave release from the official GitHub repository
- Automatically detects:
- Operating system (macOS, Windows, Linux)
- CPU architecture (x64, ARM64, etc.)
- Linux distribution family (Debian-based, RHEL-based when possible)
- Selects the most appropriate installer:
.dmg/.pkgfor macOS.exefor Windows.debor.rpmfor Linux
- Downloads the installer automatically
- Automatic SHA256 hash verification for download integrity
- Optional interactive installation step
- Uses only Python standard library (no external dependencies)
Download the script:
git clone https://github.com/maotora/braver-tz.git
cd braver-tzRun to download only:
python3 braver.pyDownload and install (you will be prompted):
python3 braver.py --installPrint the direct download URL only (useful for automation):
python3 braver.py --print-onlySpecify a custom download directory:
python3 braver.py --dir /path/to/downloads- Python 3.8+
- Internet access to
api.github.com - Administrator privileges only if installing (platform-dependent)
No third-party Python packages are required.
| Platform | Status |
|---|---|
| macOS | ✅ Tested |
| Windows | ✅ Tested |
| Linux (Ubuntu) | ✅ Tested |
| Linux (Other distros) |
Important:
This script has been tested on macOS, Windows, and Ubuntu.
Testing on other Linux distributions (Debian, Fedora, Arch, etc.) is encouraged.
Please open an issue if you encounter:
- Incorrect installer selection
- Architecture mismatches
- Installation failures
- Any unexpected behavior
- Detects the local system OS and CPU architecture
- Queries the GitHub Releases API for:
brave/brave-browser - Selects the latest stable release
- Chooses the best-matching installer asset
- Downloads the installer
- Optionally runs the installer using native OS mechanisms
The script intentionally avoids:
- Beta releases
- Nightly releases
- Release candidates
GitHub enforces unauthenticated rate limits.
If you hit a rate limit, set a token:
export GITHUB_TOKEN=your_token_here
python3 braver.pyContributions are welcome!
Especially needed:
- Linux distro compatibility testing
Please:
- Open an issue describing the problem
- Include OS, architecture, and installer name
- Attach logs or error output when possible
This project is licensed under the MIT License.
See the LICENSE file for details.
