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
|
|
@ -11,7 +11,7 @@ class ContactItemsFactory:
|
||||||
def create_contact_item(self):
|
def create_contact_item(self):
|
||||||
item = ContactItem(self._settings)
|
item = ContactItem(self._settings)
|
||||||
elem = QtWidgets.QListWidgetItem(self._friends_list)
|
elem = QtWidgets.QListWidgetItem(self._friends_list)
|
||||||
elem.setSizeHint(QtCore.QSize(250, item.height()))
|
elem.setSizeHint(QtCore.QSize(250, 40 if self._settings['compact_mode'] else 70))
|
||||||
self._friends_list.addItem(elem)
|
self._friends_list.addItem(elem)
|
||||||
self._friends_list.setItemWidget(elem, item)
|
self._friends_list.setItemWidget(elem, item)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue