Bugfix: fixes #1357 as pip3 installation of tar.gz-package was broken (#1374)

* adding po-files to tar.gz-package

* explanation for tar.gz-based pip installation
This commit is contained in:
Kim Neunert 2021-09-14 16:12:17 +02:00 committed by GitHub
parent 92a551d8f5
commit 752e3a55ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -1,4 +1,5 @@
recursive-include src/cryptoadvance/specter/templates *
recursive-include src/cryptoadvance/specter/static *
recursive-include src/cryptoadvance/specter/translations/*/LC_MESSAGES *.mo
recursive-include src/cryptoadvance/specter/translations/*/LC_MESSAGES *.po
include requirements.txt

View file

@ -89,6 +89,21 @@ pip3 install cryptoadvance.specter --upgrade
After that, Specter will be available at [http://127.0.0.1:25441/](http://127.0.0.1:25441/).
The above installation-method is quite easy but you have to trust pypi. If you want to verify the software completely yourself while still installing via pip3, you can do something like this:
```
wget https://github.com/cryptoadvance/specter-desktop/releases/download/v1.4.6/cryptoadvance.specter-1.4.6.tar.gz
wget https://github.com/cryptoadvance/specter-desktop/releases/download/v1.4.6/SHA256SUMS-pip.txt
sha256sum --check SHA256SUMS-pip.txt
# Do your usual GPG-check here
# Now, let's extract the requirements-file and install all requirements with require-hashes
tar -xvzf cryptoadvance.specter-1.4.6.tar.gz cryptoadvance.specter-1.4.6/requirements.txt
pip3 install -r cryptoadvance.specter-1.4.6/requirements.txt --require-hashes --upgrade
# The package cryptoadvance.specter itself cannot be included into requirements.txt
# But we have checked the checksum before so it's safe to install without checking it's hash
pip3 install cryptoadvance.specter-1.4.6.tar.gz
```
You can also run it using Tor, provide SSL certificates to run over https. Https is especially important because browsers don't allow the website to access the camera without secure connection, and we need camera access to scan QR codes.
An example how to run Specter server with SSL certificates (`--key`, `--cert`) over Tor (make sure to walk through the [Tor-document](docs/tor.md) ):