dockerfile for linux builds

This commit is contained in:
ingvar1995 2018-08-06 00:52:01 +03:00
parent 741adcdf18
commit 1a0bd9deee
2 changed files with 16 additions and 4 deletions

View file

@ -7,5 +7,7 @@ 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 --upgrade pip && \
pip3 install numpy pydenticon opencv-python pyinstaller
RUN useradd -ms /bin/bash toxygen
USER toxygen

View file

@ -1,19 +1,29 @@
#!/usr/bin/env bash
git clone https://github.com/toxygen-project/toxygen.git --branch=next_gen
cd toxygen/toxygen
ln -sf /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/
pyinstaller --windowed --icon=images/icon.ico --hidden-import=PyQt5.uic.plugins main.py
pyinstaller --windowed --icon=images/icon.ico main.py
cp -r styles dist/main/
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/
cp -r images dist/main/
cp -r translations dist/main/
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
tar -zcvf toxygen_linux_64.tar.gz toxygen > /dev/null
rm -rf toxygen