Skip to content

Commit 3827905

Browse files
Tor: fix updater for separate armhf and arm64 versions
1 parent b6d4ade commit 3827905

File tree

1 file changed

+8
-6
lines changed
  • .github/workflows/updates

1 file changed

+8
-6
lines changed

.github/workflows/updates/Tor.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ choose_version() {
6363
fi
6464
}
6565

66-
version_arm64="$(choose_version)"
67-
arm64_url="https://nightlies.tbb.torproject.org/nightly-builds/tor-browser-builds/tbb-nightly.${version_arm64}/nightly-linux-aarch64/tor-browser-linux-aarch64-tbb-nightly.${version_arm64}.tar.xz"
68-
66+
# update arm64 version
67+
version="$(choose_version)"
68+
arm64_url="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"
6969

70+
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
7071

71-
# Older unofficial build for armhf update script:
72-
version_armhf="$(wget -qO- https://sourceforge.net/projects/tor-browser-ports/files | grep -F 'Download Latest Version' --after 1 | tail -n -1 | tr '<>\-_' '\n' | sed -n 8p | sed 's/\.tar\.xz.*//g')"
73-
armhf_url="https://sourceforge.net/projects/tor-browser-ports/files/${version_armhf}/tor-browser-linux-armhf-${version_armhf}.tar.xz/download"
72+
# update armhf version
73+
# Older unofficial build
74+
version="$(wget -qO- https://sourceforge.net/projects/tor-browser-ports/files | grep -F 'Download Latest Version' --after 1 | tail -n -1 | tr '<>\-_' '\n' | sed -n 8p | sed 's/\.tar\.xz.*//g')"
75+
armhf_url="https://sourceforge.net/projects/tor-browser-ports/files/${version}/tor-browser-linux-armhf-${version}.tar.xz/download"
7476

7577
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh

0 commit comments

Comments
 (0)