onionshare/desktop
2024-01-25 14:17:39 +01:00
..
onionshare Translated using Weblate (Italian) 2024-01-25 14:17:39 +01:00
package Move windows and mac build scripts into scripts folder 2022-04-03 17:20:31 -07:00
screenshots Add onionshare CLI to cli folder, move GUI to desktop folder, and start refactoring it to work with briefcase 2020-10-12 22:40:55 -07:00
scripts Uses tor instead of tor.real 2023-09-05 15:18:58 +05:30
tests rename compression test 2023-05-30 16:37:03 +10:00
org.onionshare.OnionShare.appdata.xml Update obfs4proxy, meek and tor versions. Try building 32-bit snapcraft. Bump Onionshare version to 2.6.1 2022-12-11 16:08:05 +11:00
org.onionshare.OnionShare.desktop Move the rest of the desktop files out of the src folder 2021-12-19 17:33:00 -08:00
org.onionshare.OnionShare.svg Move the rest of the desktop files out of the src folder 2021-12-19 17:33:00 -08:00
poetry.lock Bump pyside6 from 6.5.0 to 6.5.1.1 in /desktop 2023-06-07 16:21:53 +00:00
pyproject.toml Bump pyside6 from 6.5.0 to 6.5.1.1 in /desktop 2023-06-07 16:21:53 +00:00
README.md Fix windows build script for new version of PySide6 2023-05-22 12:22:18 +05:30
setup-freeze.py Adds version to info.plist for macos 2023-09-05 14:28:15 +05:30
setup.py Update obfs4proxy, meek and tor versions. Try building 32-bit snapcraft. Bump Onionshare version to 2.6.1 2022-12-11 16:08:05 +11:00

OnionShare Desktop

Building OnionShare

Start by getting the source code and changing to the desktop folder:

git clone https://github.com/onionshare/onionshare.git
cd onionshare/desktop

Make sure you have Python 3 installed. If you're using Windows or macOS, install the latest version of 3.10 from python.org. For Windows, make sure to check the box to add python to the path on the first page of the installer.

Make sure you have poetry installed:

pip3 install poetry

And install the poetry dependencies:

poetry install

Windows users: You may need to install Microsoft C++ Build Tools, making sure to check "Desktop development with C++", before poetry install will work properly.

Get Tor

Linux users: In Ubuntu you may need the libxcb-xinerama0 package installed.

Windows users:

Download Tor Browser and extract the binaries for your platform. The platform must be win64, macos, or linux64.

poetry run python ./scripts/get-tor.py [platform]

Compile dependencies

Install Go. The simplest way to make sure everything works is to install Go by following these instructions.

Compile pluggable transports:

Windows users, in PowerShell:

.\scripts\build-pt-obfs4proxy.ps1
.\scripts\build-pt-snowflake.ps1
.\scripts\build-pt-meek.ps1

macOS and Linux users:

./scripts/build-pt-obfs4proxy.sh
./scripts/build-pt-snowflake.sh
./scripts/build-pt-meek.sh

Running OnionShare from the source code tree

To run OnionShare from the source tree:

poetry run onionshare
poetry run onionshare --help
poetry run onionshare -v
poetry run onionshare -v --local-only

You can also run onionshare-cli from the source tree, and it will look for Tor binaries in desktop/onionshare/resources/tor.

poetry run onionshare-cli --help

Running tests

Run the tests:

poetry run ./tests/run.sh

If you want to run tests while hiding the GUI, you must have the xvfb package installed, and then:

xvfb-run poetry run ./tests/run.sh