From 0b67b3a9dd34cc50ed721e8c595cec4f20807e67 Mon Sep 17 00:00:00 2001 From: Nikita Hasert Date: Sun, 25 May 2025 09:05:30 +0200 Subject: [PATCH] README: Add note on how to build Game2Text via PyInstaller --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index b5b58e4..961bce2 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,25 @@ python game2text.py deactivate ``` +Run the following to build a distributable binary with PyInstaller + +```bash +rm -rf build dist +source venv/bin/activate +python -m eel game2text.py web \ +--windowed \ +--onefile --noconsole \ +--icon "public/icon.icns" \ +--add-data "logs/images/temp.png:logs/images" \ +--add-data "logs/text:logs/text" \ +--add-data "anki:anki/" \ +--add-data "resources/dictionaries:resources/dictionaries/" \ +--add-data "config.ini:." +deactivate +``` + +Afterwards, you can find the executable under `/dist` + ### Installing MPV and mpvacious 1. Install MPV through the Software Center