onionshare/desktop
Hosted Weblate accece0b7b
Translated using Weblate (Japanese)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/

Translated using Weblate (Greek)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/el/

Translated using Weblate (Slovak)

Currently translated at 100.0% (6 of 6 strings)

Translated using Weblate (Slovak)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sk/

Translated using Weblate (Greek)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/el/

Translated using Weblate (Bengali)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/bn/

Translated using Weblate (Arabic)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ar/

Translated using Weblate (Finnish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fi/

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (27 of 27 strings)

Translated using Weblate (Croatian)

Currently translated at 3.2% (1 of 31 strings)

Translated using Weblate (Italian)

Currently translated at 59.0% (13 of 22 strings)

Translated using Weblate (Italian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/it/

Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/

Translated using Weblate (Portuguese (Portugal))

Currently translated at 100.0% (27 of 27 strings)

Translated using Weblate (Bengali)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/bn/

Translated using Weblate (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/pt_BR/

Translated using Weblate (Danish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/da/

Translated using Weblate (Turkish)

Currently translated at 100.0% (52 of 52 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 87.0% (27 of 31 strings)

Translated using Weblate (Norwegian Bokmål)

Currently translated at 63.6% (14 of 22 strings)

Translated using Weblate (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nb_NO/

Translated using Weblate (Icelandic)

Currently translated at 100.0% (2 of 2 strings)

Translated using Weblate (Icelandic)

Currently translated at 100.0% (2 of 2 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (29 of 29 strings)

Translated using Weblate (Turkish)

Currently translated at 92.3% (48 of 52 strings)

Translated using Weblate (Icelandic)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/is/

Translated using Weblate (Turkish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/tr/

Translated using Weblate (Croatian)

Currently translated at 7.4% (2 of 27 strings)

Translated using Weblate (Kurdish (Central))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ckb/

Translated using Weblate (Swedish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sv/

Translated using Weblate (Turkish)

Currently translated at 100.0% (27 of 27 strings)

Translated using Weblate (Turkish)

Currently translated at 7.4% (2 of 27 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (11 of 11 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (11 of 11 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (31 of 31 strings)

Translated using Weblate (Croatian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/hr/

Translated using Weblate (Greek)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/el/

Translated using Weblate (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nb_NO/

Translated using Weblate (Galician)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/gl/

Translated using Weblate (Ukrainian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/uk/

Translated using Weblate (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/zh_Hans/

Translated using Weblate (Turkish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/tr/

Translated using Weblate (Spanish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/es/

Translated using Weblate (German)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/de/

Co-authored-by: AO Localisation Lab <ao@localizationlab.org>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Diogo Marques <diogofrmarques98@gmail.com>
Co-authored-by: Eduardo Addad de Oliveira <duduaddad@gmail.com>
Co-authored-by: Eric <spice2wolf@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: Jonatan Nyberg <jonatan.nyberg.karl@gmail.com>
Co-authored-by: Juraj Liso <lisojuraj@gmail.com>
Co-authored-by: Lecwan Munzur <lecwan@riseup.net>
Co-authored-by: Michalis <michalisntovas@yahoo.gr>
Co-authored-by: Milo Ivir <mail@milotype.de>
Co-authored-by: Oymate <dhruboadittya96@gmail.com>
Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Co-authored-by: Riku Viitanen <riku.viitanen@protonmail.com>
Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Co-authored-by: Taro Tanaka <anon_japan@protonmail.com>
Co-authored-by: Thomas jensen <vpnhd@protonmail.ch>
Co-authored-by: Xosé M <xosem@disroot.org>
Co-authored-by: Zuhualime Akoochimoya <zakooch@protonmail.ch>
Co-authored-by: george k <norhorn@gmail.com>
Co-authored-by: mv87 <mv87@dismail.de>
Co-authored-by: rc <coluccini.riccardo@gmail.com>
Co-authored-by: scootergrisen <scootergrisen@gmail.com>
Co-authored-by: zer0-x <zer0_@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-advanced/tr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/hr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/pt_PT/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/tr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/uk/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/tr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-index/is/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/it/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/sk/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/tr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-security/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-security/tr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-sphinx/is/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/el/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/hr/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/tr/
Translation: OnionShare/Doc - Advanced
Translation: OnionShare/Doc - Develop
Translation: OnionShare/Doc - Features
Translation: OnionShare/Doc - Index
Translation: OnionShare/Doc - Install
Translation: OnionShare/Doc - Security
Translation: OnionShare/Doc - Sphinx
Translation: OnionShare/Doc - Tor
2021-02-15 05:50:27 +01:00
..
package Add .desktop launchers in both snap and flatpack packages 2020-11-23 20:51:16 -08: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 Move check_lacked_trans.py into scripts -- this needs to be tested and fixed at some point 2020-12-13 11:45:35 -08:00
src Translated using Weblate (Japanese) 2021-02-15 05:50:27 +01:00
tests End web thread successfully when cleaning up after a tab, which prevents crashes after running the tests; and fix msi_filename in Windows build script 2020-11-09 19:47:57 -08:00
pyproject.toml Move psutil dependency from desktop to CLI 2020-11-17 17:45:04 -08:00
README.md Write rebuild-cli in python instead of bash to work in Windows, and make the dev script available in Windows 2020-11-29 13:57:53 -08:00

OnionShare Desktop

Building OnionShare

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

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

Install platform-specific dependencies

Linux

If you're using Linux, install tor and obfs4proxy from either the official Debian repository, or from your package manager.

macOS

Download and install Python 3.8.6 from https://www.python.org/downloads/release/python-386/. I downloaded python-3.8.6-macosx10.9.pkg. (You may need to also run /Applications/Python\ 3.8/Install\ Certificates.command.)

Install python dependencies:

pip3 install --user poetry requests

Download Tor Browser and extract the binaries:

./scripts/get-tor-osx.py

Windows

These instructions include adding folders to the path in Windows. To do this, go to Start and type "advanced system settings", and open "View advanced system settings" in the Control Panel. Click Environment Variables. Under "System variables" double-click on Path. From there you can add and remove folders that are available in the PATH.

Download Python 3.8.6, 32-bit (x86) from https://www.python.org/downloads/release/python-386/. I downloaded python-3.8.6.exe. When installing it, make sure to check the "Add Python 3.8 to PATH" checkbox on the first page of the installer.

Download and install 7-Zip from http://www.7-zip.org/download.html. I downloaded 7z1900.exe. Add C:\Program Files (x86)\7-Zip to your path.

Install python dependencies:

pip install poetry requests

Download Tor Browser and extract the binaries:

python scripts\get-tor-windows.py

Prepare the virtual environment

OnionShare uses Briefcase.

Install Briefcase dependencies by following these instructions.

Now create and/or activate a virtual environment.

  • Linux and macOS
    python3 -m venv venv
    . venv/bin/activate
    
  • Windows
    python -m venv venv
    venv\Scripts\activate.bat
    

While your virtual environment is active, install briefcase from pip.

pip install briefcase

In order to work with the desktop app, you'll need to build a wheel of the CLI package first, and copy it into the desktop folder. You'll need to re-run this script each time you change the CLI code.

python scripts/rebuild-cli.py

Running OnionShare from the source code tree

Inside the virtual environment, run OnionShare like this to install all of the dependencies:

briefcase dev -d

Once you have the dependencies installed, you can run it using the dev.sh script, which lets you use command line arguments, such as to --verbose or --local-only:

./scripts/dev.sh --help
./scripts/dev.sh -v
./scripts/dev.sh -v --local-only

Windows uses scripts\dev.bat instead.

Running tests

Install these packages inside your virtual environment:

pip install pytest pytest-briefcase pytest-faulthandler pytest-qt

Then run the tests:

./tests/run.sh

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

xvfb-run ./tests/run.sh