From 1833da0060b7d3efe4c4c07ac7bbf57bca8868e3 Mon Sep 17 00:00:00 2001 From: Moul Date: Mon, 17 Apr 2017 15:28:14 +0200 Subject: [PATCH] [doc] #5: document how to build with Pyinstaller. --- README.md | 1 + doc/build_with_pyinstaller.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 doc/build_with_pyinstaller.md diff --git a/README.md b/README.md index af6862f..ab3b6a8 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ ## Install - [Install inside a Python environemnt](https://github.com/duniter/silkaj/blob/master/doc/install_pyenv.md) - [Install without Python environment](https://github.com/duniter/silkaj/blob/master/doc/install_on_the_system.md) +- [Build an executable with Pyinstaller](https://github.com/duniter/silkaj/blob/master/doc/build_with_pyinstaller.md) - [Install as a drop-down for GNOME Shell with Argos](https://github.com/duniter/silkaj/blob/master/doc/argos.md) ## Usage diff --git a/doc/build_with_pyinstaller.md b/doc/build_with_pyinstaller.md new file mode 100644 index 0000000..384f784 --- /dev/null +++ b/doc/build_with_pyinstaller.md @@ -0,0 +1,18 @@ +# Build with Pyinstaller + +## Install Pyinstaller +```bash +pip install pyinstaller +``` + +If you are using Pyenv, don’t forget to save pyinstaller install: +```bash +pyenv rehash +``` + +## Build +```bash +pyinstaller src/silkaj.py --hidden-import=_cffi_backend --hidden-import=_scrypt --onefile +``` + +You will found the exetuable file on `silkaj/dist` folder.