From 62c6dbfb34223a3ccfb7b08a7cbd1f408fb3504d Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sat, 29 Sep 2018 16:50:17 +0300 Subject: [PATCH] build.sh and docs update --- build/build.sh | 3 +++ docs/compile.md | 18 +++++++++++++----- docs/contact.md | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/build/build.sh b/build/build.sh index 522d6b2..fb6c4b2 100644 --- a/build/build.sh +++ b/build/build.sh @@ -7,6 +7,7 @@ cd toxygen/toxygen pyinstaller --windowed --icon=images/icon.ico main.py cp -r styles dist/main/ +find . -type f ! -name '*.qss' -delete cp -r plugins dist/main/ mkdir -p dist/main/ui/views cp -r ui/views dist/main/ui/ @@ -14,8 +15,10 @@ cp -r sounds dist/main/ cp -r smileys dist/main/ cp -r stickers dist/main/ cp -r bootstrap dist/main/ +find . -type f ! -name '*.json' -delete cp -r images dist/main/ cp -r translations dist/main/ +find . -name "*.ts" -type f -delete cd dist mv main toxygen diff --git a/docs/compile.md b/docs/compile.md index 995dc35..b4f6810 100644 --- a/docs/compile.md +++ b/docs/compile.md @@ -2,10 +2,18 @@ You can compile Toxygen using [PyInstaller](http://www.pyinstaller.org/) -Install PyInstaller: -``pip3 install pyinstaller`` +Use Dockerfile and build script from `build` directory: -Compile Toxygen: -``pyinstaller --windowed --icon images/icon.ico main.py`` +1. Build image: +``` +docker build -t toxygen . +``` -Don't forget to copy /images/, /sounds/, /translations/, /styles/, /smileys/, /stickers/, /plugins/ (and /libs/libtox.dll, /libs/libsodium.a on Windows) to /dist/main/ +2. Run container: +``` +docker run -it toxygen bash +``` + +3. Execute `build.sh` script: + +```./build.sh``` diff --git a/docs/contact.md b/docs/contact.md index c66da1c..9f80595 100644 --- a/docs/contact.md +++ b/docs/contact.md @@ -2,4 +2,4 @@ 1) Using GitHub - open issue -2) Use Toxygen Tox Group - add bot kalina@toxme.io (or 12EDB939AA529641CE53830B518D6EB30241868EE0E5023C46A372363CAEC91C2C948AEFE4EB) +2) Use Toxygen Tox Group (NGC) - ID: 59D68B2709E81A679CF91416CB0E3692851C6CFCABEFF98B7131E3805A6D75FA