dockerfile for linux builds
This commit is contained in:
parent
741adcdf18
commit
1a0bd9deee
@ -7,5 +7,7 @@ cd toxcore && mkdir _build && cd _build && \
|
|||||||
cmake .. && make && make install
|
cmake .. && make && make install
|
||||||
|
|
||||||
RUN apt-get install portaudio19-dev python3-pyqt5 python3-pyaudio python3-pip -y && \
|
RUN apt-get install portaudio19-dev python3-pyqt5 python3-pyaudio python3-pip -y && \
|
||||||
pip3 install --upgrade pip && \
|
|
||||||
pip3 install numpy pydenticon opencv-python pyinstaller
|
pip3 install numpy pydenticon opencv-python pyinstaller
|
||||||
|
|
||||||
|
RUN useradd -ms /bin/bash toxygen
|
||||||
|
USER toxygen
|
||||||
|
@ -1,19 +1,29 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
git clone https://github.com/toxygen-project/toxygen.git --branch=next_gen
|
git clone https://github.com/toxygen-project/toxygen.git --branch=next_gen
|
||||||
cd toxygen/toxygen
|
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 styles dist/main/
|
||||||
cp -r plugins 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 sounds dist/main/
|
||||||
cp -r smileys dist/main/
|
cp -r smileys dist/main/
|
||||||
cp -r stickers dist/main/
|
cp -r stickers dist/main/
|
||||||
cp -r bootstrap dist/main/
|
cp -r bootstrap dist/main/
|
||||||
cp -r images dist/main/
|
cp -r images dist/main/
|
||||||
|
cp -r translations dist/main/
|
||||||
|
|
||||||
cd dist
|
cd dist
|
||||||
mv main toxygen
|
mv main toxygen
|
||||||
cd toxygen
|
cd toxygen
|
||||||
mv main 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 ..
|
cd ..
|
||||||
tar -zcvf toxygen_linux_64.tar.gz toxygen
|
|
||||||
|
tar -zcvf toxygen_linux_64.tar.gz toxygen > /dev/null
|
||||||
rm -rf toxygen
|
rm -rf toxygen
|
||||||
|
Loading…
Reference in New Issue
Block a user