merge in next_gen branch
This commit is contained in:
parent
fda07698db
commit
b51ec9bd71
99 changed files with 14895 additions and 32 deletions
13
build/Dockerfile
Normal file
13
build/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install build-essential libtool autotools-dev automake checkinstall cmake check git yasm libsodium-dev libopus-dev libvpx-dev pkg-config -y && \
|
||||
git clone https://github.com/ingvar1995/toxcore.git --branch=ngc_rebase && \
|
||||
cd toxcore && mkdir _build && cd _build && \
|
||||
cmake .. && make && make install
|
||||
|
||||
RUN apt-get install portaudio19-dev python3-pyqt5 python3-pyaudio python3-pip -y && \
|
||||
pip3 install numpy pydenticon opencv-python pyinstaller
|
||||
|
||||
RUN useradd -ms /bin/bash toxygen
|
||||
USER toxygen
|
33
build/build.sh
Normal file
33
build/build.sh
Normal file
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd ~
|
||||
git clone https://github.com/toxygen-project/toxygen.git --branch=next_gen
|
||||
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/
|
||||
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
|
||||
cd toxygen
|
||||
mv main toxygen
|
||||
wget -O updater https://github.com/toxygen-project/toxygen_updater/releases/download/v0.1/toxygen_updater_linux_64
|
||||
echo "[Paths]" >> qt.conf
|
||||
echo "Prefix = PyQt5/Qt" >> qt.conf
|
||||
cd ..
|
||||
|
||||
tar -zcvf toxygen_linux_64.tar.gz toxygen > /dev/null
|
||||
rm -rf toxygen
|
Loading…
Add table
Add a link
Reference in a new issue