Merge branch 'PabloCastellano-master'

This commit is contained in:
Micah Lee 2016-06-10 17:29:44 -07:00
commit 900276a524
3 changed files with 17 additions and 4 deletions

View File

@ -11,10 +11,23 @@ cd onionshare
*For .deb-based distros (like Debian, Ubuntu, Linux Mint):*
Note that python3-stem appears in Debian wheezy and newer, and it appears in Ubuntu 13.10 and newer. Older versions of Debian and Ubuntu aren't supported.
Then install the needed dependencies:
```sh
sudo apt-get install -y build-essential fakeroot python3-all python3-stdeb python3-flask python3-stem python3-pyqt5 dh-python
sudo apt-get install -y python3-flask python3-stem python3-pyqt5
```
After that you can try both the CLI and the GUI version of OnionShare:
```sh
./install/scripts/onionshare
./install/scripts/onionshare-gui
```
A script to build a .deb package and install OnionShare easily is also provided for your convenience:
```sh
sudo apt-get install -y build-essential fakeroot python3-all python3-stdeb dh-python
./install/build_deb.sh
sudo dpkg -i deb_dist/onionshare_*.deb
```

View File

@ -23,7 +23,7 @@ import sys, os
try:
import onionshare
except ImportError:
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/..'))
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/../..'))
import onionshare
onionshare.main()

View File

@ -23,7 +23,7 @@ import sys, os
try:
import onionshare_gui
except ImportError:
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/..'))
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/../..'))
import onionshare_gui
onionshare_gui.main()