diff options
author | Micah Lee <micah@micahflee.com> | 2020-11-29 10:42:04 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-11-29 10:42:04 -0800 |
commit | 7bcfe6cad11036feeb52b199a9f0736ff35e21d6 (patch) | |
tree | 5b4645dd58b64fcc0c49e7802c7ff3ca40d5b978 | |
parent | 66e9feae51e307414f68055f0f50c6324fbcddb8 (diff) | |
download | onionshare-7bcfe6cad11036feeb52b199a9f0736ff35e21d6.tar.gz onionshare-7bcfe6cad11036feeb52b199a9f0736ff35e21d6.zip |
Add rebuild-cli.sh script
-rw-r--r-- | desktop/README.md | 16 | ||||
-rwxr-xr-x | desktop/scripts/rebuild-cli.sh | 9 |
2 files changed, 15 insertions, 10 deletions
diff --git a/desktop/README.md b/desktop/README.md index a1406b47..053bf4ea 100644 --- a/desktop/README.md +++ b/desktop/README.md @@ -53,16 +53,6 @@ python scripts\get-tor-windows.py ### Prepare the code -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: - -```sh -cd ../cli -poetry install -poetry build -cp dist/onionshare_cli-*.whl ../desktop -cd ../desktop -``` - OnionShare uses [Briefcase](https://briefcase.readthedocs.io/en/latest/). Install Briefcase dependencies by following [these instructions](https://docs.beeware.org/en/latest/tutorial/tutorial-0.html#install-dependencies). @@ -86,6 +76,12 @@ 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. + +```sh +./scripts/rebuild-cli.sh +``` + Run OnionShare from the source tree like this: ``` diff --git a/desktop/scripts/rebuild-cli.sh b/desktop/scripts/rebuild-cli.sh new file mode 100755 index 00000000..f8191955 --- /dev/null +++ b/desktop/scripts/rebuild-cli.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Build the CLI python wheel and copy it to the desktop folder + +SCRIPTS_DIR="$( cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )" +cd $SCRIPTS_DIR +cd ../../cli +poetry build +cp dist/*.whl ../desktop
\ No newline at end of file |