dockerfile for building - initial version
This commit is contained in:
parent
bc9dfd1bc4
commit
9f702339dd
3 changed files with 31 additions and 1 deletions
11
build/Dockerfile
Normal file
11
build/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
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 --upgrade pip && \
|
||||
pip3 install numpy pydenticon opencv-python pyinstaller
|
19
build/build.sh
Normal file
19
build/build.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/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
|
||||
cp -r styles dist/main/
|
||||
cp -r plugins dist/main/
|
||||
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/
|
||||
cd dist
|
||||
mv main toxygen
|
||||
cd toxygen
|
||||
mv main toxygen
|
||||
cd ..
|
||||
tar -zcvf toxygen_linux_64.tar.gz toxygen
|
||||
rm -rf toxygen
|
Loading…
Add table
Add a link
Reference in a new issue