aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder/tor-browser-alpha/unix/linux/install
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-08-14 12:55:43 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-08-14 12:55:43 -0300
commit3046a9825392ddb4e34c47cc2fb88275a21193f6 (patch)
treeebd66659f1ca0364e352984f0cc571ebb158894e /share/hoarder/tor-browser-alpha/unix/linux/install
parent70a4c0e8ad67e93b05f8b87e4eb5261019d25acc (diff)
downloadtrashman-3046a9825392ddb4e34c47cc2fb88275a21193f6.tar.gz
trashman-3046a9825392ddb4e34c47cc2fb88275a21193f6.tar.bz2
Fix: hoarder: merge tor-browser and torbrowser-alpha into a single script and autodetect the latest version
Diffstat (limited to 'share/hoarder/tor-browser-alpha/unix/linux/install')
l---------[-rwxr-xr-x]share/hoarder/tor-browser-alpha/unix/linux/install50
1 files changed, 1 insertions, 49 deletions
diff --git a/share/hoarder/tor-browser-alpha/unix/linux/install b/share/hoarder/tor-browser-alpha/unix/linux/install
index a2e5dbd..b53efa1 100755..120000
--- a/share/hoarder/tor-browser-alpha/unix/linux/install
+++ b/share/hoarder/tor-browser-alpha/unix/linux/install
@@ -1,49 +1 @@
-#!/usr/bin/env sh
-#
-# Install Tor Browser Alpha
-#
-
-# Parameters
-SHARE="$1"
-LIB="$2"
-
-# Include basic functions
-. $LIB/trashman/functions || exit 1
-
-# Requirements
-trashman_require wget
-
-# Additional parameters
-APP="tor-browser-alpha"
-VERSION="13.0a1"
-URL="https://www.torproject.org/dist/torbrowser/${VERSION}/"
-FILE="tor-browser-linux64-${VERSION}_ALL.tar.xz"
-WORK="`mktemp -d`" || exit 1
-
-# Download
-wget "$URL/$FILE" -O $WORK/$FILE || exit 1
-wget "$URL/$FILE.asc" -O $WORK/$FILE.asc || exit 1
-
-# Verify
-gpg --homedir $WORK/.gnupg --import $SHARE/$APP/unix/linux/files/$APP.asc || exit 1
-gpg --homedir $WORK/.gnupg --verify $WORK/$FILE.asc || exit 1
-rm -rf $WORK/.gnupg || exit 1
-
-# Unpack
-tar xvf $WORK/$FILE -C $WORK || exit 1
-
-# Install
-mkdir -p $HOME/.local/share || exit 1
-cd $HOME/.local/share || exit 1
-rm -rf $APP || exit 1
-mv $WORK/tor-browser $APP || exit 1
-rm -rf $WORK || exit 1
-
-# Create symlink to scripts
-mkdir -p $HOME/.local/bin || exit 1
-cd $HOME/.local/bin || exit 1
-ln -sf $HOME/.local/share/$APP/Browser/start-tor-browser $APP || exit 1
-
-# Done
-trashman_installed_at $HOME/.local/share/$APP
-trashman_run_with $HOME/.local/bin/$APP
+../../../tor-browser/unix/linux/install \ No newline at end of file