#!/usr/bin/env sh # # Install onionshare # # https://onionshare.org # https://github.com/micahflee/onionshare # Parameters SHARE="$1" LIB="$2" # Include basic functions . $LIB/trashman/functions || exit 1 . $LIB/trashman/debian || exit 1 # Requirements trashman_apt_install build-essential fakeroot python3-all python3-stdeb dh-python python3-flask python3-stem python3-pyqt5 python-nautilus python3-pytest tor obfs4proxy git python3-pip python3-nacl python3-socks # Install python3-sha3 pip3 install sha3 # Go to working folder mkdir -p $HOME/.local/share cd $HOME/.local/share # Get the code if [ -d "onionshare" ]; then cd onionshare && git pull || exit 1 else git clone https://github.com/micahflee/onionshare && cd onionshare || exit 1 fi # Create symlink to scripts mkdir -p $HOME/.local/bin cd $HOME/.local/bin #ln -sf $HOME/.local/share/onionshare/dev_scripts/onionshare #ln -sf $HOME/.local/share/onionshare/dev_scripts/onionshare-gui echo "cd $HOME/.local/share/onionshare/dev_scripts && ./onionshare" > onionshare echo "cd $HOME/.local/share/onionshare/dev_scripts && ./onionshare-gui" > onionshare-gui chmod +x onionshare onionshare-gui