Update desktop readme, and add a helper script to use CLI args

This commit is contained in:
Micah Lee 2020-11-29 11:23:23 -08:00
parent d416abdf95
commit bbd5d6147b
3 changed files with 22 additions and 2 deletions

9
desktop/scripts/dev.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# Run OnionShare desktop, allowing you to use command-line arguments
SCRIPTS_DIR="$( cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"
cd $SCRIPTS_DIR
cd ../src
python -c "import onionshare; onionshare.main()" $@

View file

@ -5,5 +5,6 @@
SCRIPTS_DIR="$( cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"
cd $SCRIPTS_DIR
cd ../../cli
poetry install
poetry build
cp dist/*.whl ../desktop