Skip to content

Commit

Permalink
Merge pull request #2352 from Recurzion/master
Browse files Browse the repository at this point in the history
(tor-browser) version bump to fix broken tor-browser pkg
  • Loading branch information
pauby authored Jan 10, 2024
2 parents aba897b + d750c20 commit b9640c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automatic/tor-browser/update.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import-module au

$releases = "https://www.torproject.org/download/languages/"
$baseUrl = "https://www.torproject.org"
$baseUrl = "https://archive.torproject.org/tor-package-archive/torbrowser/"

function global:au_SearchReplace {
@{
Expand All @@ -23,8 +23,8 @@ function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$allExes = $download_page.Links | Where-Object href -match "\.exe$" | Select-Object -expand href
$url32 = $allExes | Where-Object { $_ -match "torbrowser-install-\d.*_All.exe$" } | Select-Object -First 1
$url64 = $allExes | Where-Object { $_ -match "torbrowser-install-win64.*_All.exe$" } | Select-Object -First 1
$url32 = (($allExes | Where-Object { $_ -match "tor-browser-windows-i686-portable-\d.*.exe$" } | Select-Object -First 1) -split("\/",5) | Select -Index 4)
$url64 = (($allExes | Where-Object { $_ -match "tor-browser-windows-x86_64-portable-\d.*.exe$" } | Select-Object -First 1) -split("\/",5) | Select -Index 4)
$version = $url64 -split '\/' | Select-Object -last 1 -skip 1

@{
Expand Down

0 comments on commit b9640c1

Please sign in to comment.