-
-
Notifications
You must be signed in to change notification settings - Fork 239
Tor: Bump to nightly aarch64 builds, refactor code, update assets, modify update script #2837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
theofficialgman
merged 10 commits into
Botspot:master
from
ooovlad:add-tor-browser-nightly
Oct 5, 2025
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5a5bd91
Tor Browser Nightly: Add App, categorize, add update script
ooovlad 5fd81e5
Correct file permissions for install and uninstall files
github-actions[bot] f848e55
Tor Browser Nightly: rename app - strip (aarch64 build)
ooovlad 1f7a367
Tor <- merge Tor Browser Nightly
ooovlad 24bba56
Tor: fix typos in install-64
ooovlad 380abdb
Tor: update 5d delay, return armhf to update, description edit
ooovlad 57aec35
Tor: install-64 and uninstall fix
ooovlad b6d4ade
Tor: fix update script bugs
ooovlad 3827905
Tor: fix updater for separate armhf and arm64 versions
theofficialgman 63b4bb7
Tor: update to latest nightly
theofficialgman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
.github/workflows/updates/Tor Browser Nightly (aarch64 build).sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #!/bin/bash | ||
| # Thanks GitHub Copilot for parsing/sorting code. | ||
|
|
||
| URL="https://nightlies.tbb.torproject.org/nightly-builds/tor-browser-builds" | ||
|
|
||
| # Fetch directory listing | ||
| html="$(wget -qO- "$URL" 2>/dev/null || true)" | ||
| if [ -z "${html}" ]; then | ||
| error "Error: failed to fetch URL: $URL" | ||
| fi | ||
|
|
||
| # Extract versions from the specific structure: | ||
| # Lines look like: | ||
| # <img ...> <a href="tbb-nightly.2025.09.24/">tbb-nightly.2025.09.24/</a> 2025-09-24 14:28 - | ||
|
|
||
| versions="$( | ||
| echo "$html" \ | ||
| | sed -nE 's@.*href="tbb-nightly\.([0-9]{4}\.[0-9]{2}\.[0-9]{2})/".*@\1@p' | ||
| )" | ||
|
|
||
| if [ -z "$versions" ]; then | ||
| error "Error: no nightly versions found at $URL" | ||
| fi | ||
|
|
||
| # Sort by YYYYMMDD numerically to be portable (no reliance on sort -V). | ||
| latest="$( | ||
| printf '%s\n' "$versions" \ | ||
| | awk -F. 'NF==3 { printf "%s %s%s%s\n", $0, $1, $2, $3 }' \ | ||
| | LC_ALL=C sort -k2,2n \ | ||
| | tail -n 1 \ | ||
| | cut -d' ' -f1 | ||
| )" | ||
|
|
||
| if [ -z "$latest" ]; then | ||
| echo "Error: failed to determine latest nightly from parsed versions." | ||
| fi | ||
|
|
||
| webVer="$latest" | ||
| arm64_url="https://nightlies.tbb.torproject.org/nightly-builds/tor-browser-builds/tbb-nightly.$webVer/nightly-linux-aarch64/tor-browser-linux-aarch64-tbb-nightly.$webVer.tar.xz" | ||
|
|
||
| source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Tor Browser is developed by The Tor Project, Inc. | ||
| https://www.torproject.org/about/people/ | ||
|
|
||
| Tor Browser ARM64 Nightly was put to Pi-Apps by oovlad | ||
| https://github.com/ooovlad |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| The Tor Browser is a free web browser built on Firefox that helps you surf the web anonymously by routing your connection through a secure, global network of volunteer servers. Your data is encrypted, and your IP address is hidden, protecting you from trackers, advertisers, and prying eyes. With built-in features like tracker blocking and script protection, Tor Browser ensures a safer online experience. Perfect for private browsing, accessing restricted sites, or exploring the web without leaving a trace. | ||
|
|
||
| Native aarch64 builds are coming! This is an official nightly aarch64 Linux build taken from https://nightlies.tbb.torproject.org/nightly-builds/tor-browser-builds/ | ||
|
|
||
| WARNING! This is a build that is currently in development. It is mainly for testing purposes, you should expect bugs. | ||
|
|
||
| To run: Menu -> Internet -> Tor Browser Nightly | ||
| To run from terminal: `~/.local/share/tor-browser-nightly/start-tor-browser.desktop` | ||
|
|
||
| To remove user-data after uninstall use `rm -rf ~/.local/share/tor-browser-nightly` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| #!/bin/bash | ||
|
|
||
| version=2025.09.24 | ||
| INSTALL_DIR=${INSTALL_DIR:-~/.local/share} | ||
|
|
||
| rm -f /tmp/tbb-nightly.tar.xz | ||
| wget -O /tmp/tbb-nightly.tar.xz "https://nightlies.tbb.torproject.org/nightly-builds/tor-browser-builds/tbb-nightly.$version/nightly-linux-aarch64/tor-browser-linux-aarch64-tbb-nightly.$version.tar.xz" || error "Failed to download Tor Browser Nightly ver. $version" | ||
|
|
||
| status 'Looking for previous installations and remaining user data... ' | ||
| if [ -d "$INSTALL_DIR"/tor-browser-nightly ]; then | ||
| #if data folder exists, prepare to import its user-data | ||
| if [ -d "$INSTALL_DIR"/tor-browser-nightly/Browser/TorBrowser/Data/Browser ];then | ||
| mv -f "$INSTALL_DIR"/tor-browser-nightly/Browser/TorBrowser/Data/Browser/ "$INSTALL_DIR"/tor-browser-nightly.temp/ || error 'Failed to move existing user data to temporary folder' | ||
| fi | ||
| rm -rf "$INSTALL_DIR"/tor-browser-nightly/* || error 'Failed to remove old Tor Browser files' | ||
| else | ||
| mkdir -p "$INSTALL_DIR"/tor-browser-nightly || error 'Failed to create installation directory' | ||
| fi | ||
| status_green 'Done' | ||
|
|
||
| status "Extracting Tor Browser to $INSTALL_DIR/tor-browser-nightly ... " | ||
| tar -xpJf /tmp/tbb-nightly.tar.xz -C "$INSTALL_DIR"/tor-browser-nightly --strip-components=1 || error 'Failed to extract Tor Browser' | ||
| rm -f /tmp/tbb-nightly.tar.xz | ||
| status_green 'Done' | ||
|
|
||
| #if tor-browser.temp folder exists, import its user-data | ||
| if [ -d "$INSTALL_DIR"/tor-browser-nightly.temp ];then | ||
| status 'Importing existing user data... ' | ||
| rm -rf "$INSTALL_DIR"/tor-browser-nightly/Browser/TorBrowser/Data/Browser | ||
| mv -f "$INSTALL_DIR"/tor-browser-nightly.temp "$INSTALL_DIR"/tor-browser-nightly/Browser/TorBrowser/Data/Browser | ||
| rm -rf "$INSTALL_DIR"/tor-browser-nightly.temp | ||
| status_green 'Done' | ||
| fi | ||
|
|
||
| status 'Registering Tor Browser as a desktop app for this user' | ||
| cd "$INSTALL_DIR"/tor-browser-nightly || error 'Fatal error! Cannot cd to app!' | ||
| "$INSTALL_DIR"/tor-browser-nightly/start-tor-browser.desktop --register-app || error 'Failed to register a desktop app' | ||
| status_green 'Done' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| #!/bin/bash | ||
|
|
||
| INSTALL_DIR=${INSTALL_DIR:-~/.local/share} | ||
|
|
||
| status 'Unregistering Tor Browser desktop app... ' | ||
| cd "$INSTALL_DIR"/tor-browser-nightly || error 'Fatal error! Cannot cd to app!' | ||
| "$INSTALL_DIR"/tor-browser-nightly/start-tor-browser.desktop --unregister-app || error 'Failed to unregister a desktop app' | ||
| status_green 'Done' | ||
|
|
||
| status 'Copying user data files to temporary folder...' | ||
| if [ -d "$INSTALL_DIR"/tor-browser-nightly/Browser/TorBrowser/Data/Browser ];then | ||
| rm -rf "$INSTALL_DIR"/tor-browser-nightly.temp | ||
| mv -n "$INSTALL_DIR"/tor-browser-nightly/Browser/TorBrowser/Data/Browser "$INSTALL_DIR"/tor-browser-nightly.temp | ||
| fi | ||
| status_green 'Done' | ||
|
|
||
| status 'Removing all browser internals...' | ||
| rm -rfv "$INSTALL_DIR"/tor-browser-nightly || error "Cannot remove $INSTALL_DIR/tor-browser-nightly directory" | ||
| status_green 'Done' | ||
|
|
||
| #move back the temporary folder containing user-data | ||
| if [ -d "$INSTALL_DIR"/tor-browser-nightly.temp ];then | ||
| status 'Moving user data files back...' | ||
| mkdir -p "$INSTALL_DIR"/tor-browser-nightly/Browser/TorBrowser/Data | ||
| mv "$INSTALL_DIR"/tor-browser-nightly.temp "$INSTALL_DIR"/tor-browser-nightly/Browser/TorBrowser/Data/Browser | ||
| status_green 'Done' | ||
|
|
||
| #let the user know where configuration is | ||
| echo "Tor Browser has been uninstalled, but user-data like settings and bookmarks remain intact. | ||
| To remove these files, run this command: | ||
| rm -rf $INSTALL_DIR/tor-browser-nightly" | ||
|
|
||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| https://www.torproject.org/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.