Skip to content

Commit

Permalink
re-add support for downloading alpha versions
Browse files Browse the repository at this point in the history
`tbb_download_alpha_version=true`

https://www.whonix.org/wiki/Tor_Browser#Alpha
  • Loading branch information
Patrick Schleizer committed Dec 15, 2020
1 parent ef25497 commit dd81cf6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions usr/bin/update-torbrowser
Expand Up @@ -772,15 +772,21 @@ tb_preparation() {
mkdir --parents "$tb_cache_folder"
mkdir --parents "$tb_downloaded_files_folder"

if [ "$tbb_download_alpha_version" = "true" ]; then
[ -n "$TBB_RELEASE_CHANNEL" ] || TBB_RELEASE_CHANNEL="alpha"
else
[ -n "$TBB_RELEASE_CHANNEL" ] || TBB_RELEASE_CHANNEL="release"
fi

if [ "$tb_onion" = "true" ]; then
[ -n "$tbb_download_base_url" ] || tbb_download_base_url="http://rqef5a5mebgq46y5.onion"
## https://web.archive.org/web/20201213115438/https://securityheaders.com/?q=https%3A%2F%2Faus1.torproject.org%2Ftorbrowser%2Fupdate_3%2Frelease%2Fdownloads.json&followRedirects=off
## Onion-Location http://x3nelbld33llasqv.onion/torbrowser/update_3/release/downloads.json
[ -n "$TBB_VERSIONS_FILE_LINK" ] || TBB_VERSIONS_FILE_LINK="http://x3nelbld33llasqv.onion/torbrowser/update_3/release/downloads.json"
[ -n "$TBB_VERSIONS_FILE_LINK" ] || TBB_VERSIONS_FILE_LINK="http://x3nelbld33llasqv.onion/torbrowser/update_3/${TBB_RELEASE_CHANNEL}/downloads.json"
else
## Download from the torproject.org clearnet by default.
[ -n "$tbb_download_base_url" ] || tbb_download_base_url="https://dist.torproject.org"
[ -n "$TBB_VERSIONS_FILE_LINK" ] || TBB_VERSIONS_FILE_LINK="https://aus1.torproject.org/torbrowser/update_3/release/downloads.json"
[ -n "$TBB_VERSIONS_FILE_LINK" ] || TBB_VERSIONS_FILE_LINK="https://aus1.torproject.org/torbrowser/update_3/${TBB_RELEASE_CHANNEL}/downloads.json"
[ -n "$CURL_FORCE_SSL" ] || CURL_FORCE_SSL="--tlsv1.3 --proto =https"
fi

Expand Down

0 comments on commit dd81cf6

Please sign in to comment.