diff options
author | Micah Lee <micah@micahflee.com> | 2020-11-03 21:48:22 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-11-03 21:48:22 -0800 |
commit | f8437c4fea88dc5643f1d9b225a6a6eab0c89606 (patch) | |
tree | 2edb21864429332749dc05ed9da122ef17d9ecbb /desktop | |
parent | 3cef5c1679019f70458557d29c4b26d00e969e96 (diff) | |
download | onionshare-f8437c4fea88dc5643f1d9b225a6a6eab0c89606.tar.gz onionshare-f8437c4fea88dc5643f1d9b225a6a6eab0c89606.zip |
Make snapcraft packaging work with briefcase refactor
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/README.md | 11 | ||||
-rw-r--r-- | desktop/src/setup.py | 10 |
2 files changed, 9 insertions, 12 deletions
diff --git a/desktop/README.md b/desktop/README.md index 7d816b16..78c33571 100644 --- a/desktop/README.md +++ b/desktop/README.md @@ -95,6 +95,11 @@ xvfb-run ./tests/run.sh ## Making a release +Before making a release, update the version in these places: + +- `pyproject.toml` +- `src/setup.py` + ### Flatpak packaging See: https://github.com/micahflee/org.onionshare.OnionShare @@ -103,7 +108,7 @@ See: https://github.com/micahflee/org.onionshare.OnionShare This folder contains files to build a [snap package](https://snapcraft.io/). First make sure you install `snap` and `snapcraft` (`snap install snapcraft --classic`). -To build the snap, cd to the `onionshare` folder and run: +To build the snap, run: ```sh snapcraft @@ -119,8 +124,8 @@ snap list Run the OnionShare snap: ```sh -/snap/bin/onionshare # CLI version -/snap/bin/onionshare.onionshare-gui # GUI version +/snap/bin/onionshare # GUI version +/snap/bin/onionshare.cli # CLI version ``` Delete the OnionShare snap: diff --git a/desktop/src/setup.py b/desktop/src/setup.py index 59b09b29..d4ff13af 100644 --- a/desktop/src/setup.py +++ b/desktop/src/setup.py @@ -25,15 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. import os import setuptools -with open( - os.path.join( - os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "pyproject.toml" - ) -) as f: - for line in f.readlines(): - if line.startswith("version = "): - version = line.split('"')[1] - break +version = "2.3.dev1" setuptools.setup( name="onionshare", |