Compare commits

...

4 Commits

Author SHA1 Message Date
knotteye a4f5e25994 .deb: fix dependencies 2021-04-18 20:09:42 -05:00
knotteye d32a4d5a06 Add .deb target 2021-04-18 19:57:22 -05:00
knotteye 8af9de903c Add some hidden dependencies 2021-04-18 19:41:23 -05:00
knotteye 7f2533c1be Update deb skeleton 2021-04-18 19:40:58 -05:00
4 changed files with 29 additions and 5 deletions

View File

@ -13,14 +13,26 @@ fresh: clean default pack
systemlibs: systemlibtarget pack
deb: debtarget pack packdeb
windows: windowstarget
default:
python3 -m nuitka --follow-imports --enable-plugin=qt-plugins --include-qt-plugins=all --python-flag=-O -o plchat plchat.py
python3 -m nuitka --follow-imports --include-module=certifi --include-module=keyring.backends.kwallet --include-module=keyring.backends.chainer --enable-plugin=qt-plugins --include-qt-plugins=all --python-flag=-O -o plchat plchat.py
windowstarget:
python3 -m nuitka --follow-imports --include-module=win32ctypes --enable-plugin=qt-plugins --include-qt-plugins=all --windows-disable-console --windows-icon-from-ico=fedi.ico --windows-company-name=plchat --windows-product-name=plchat --windows-product-version=$(PRODUCTVER) --python-flag=-O -o plchat plchat.py
debtarget:
ifeq (,$(findstring bash,$(SHELL)))
echo "You will need to make .deb packages using bash"
exit 1
endif
sudo ./deb/DEBIAN/postinst
source /usr/lib/plchat/venv/bin/activate
pip3 install keyring notify-py appdirs python-dateutil requests urllib3 websockets
python3 -m nuitka --follow-imports --include-module=certifi --include-module=keyring.backends.kwallet --include-module=keyring.backends.chainer --enable-plugin=qt-plugins --include-qt-plugins=all --python-flag=-O -o plchat plchat.py
systemlibtarget:
python3 -m nuitka --nofollow-imports --follow-import=misc --follow-import=monkeypatch --follow-import=pleroma --follow-import=timeconvert --follow-import=videowidget --follow-import=audiowidget --python-flag=-O -o plchat plchat.py
@ -35,6 +47,12 @@ pack:
cp LICENSE dist
cp COPYING dist
packdeb:
mkdir -p deb/usr/lib/plchat
mv dist deb/usr/lib/plchat
dpkg --build deb
mv deb.deb plchat.deb
clean:
rm -r dist || true

View File

@ -1,10 +1,11 @@
Package: plchat
Version: 1.0
Version: 1.0.1
Section: net
Priority: optional
Architecture: linux-amd64
Description: A pleroma chat client
Homepage: https://git.waldn.net/git/knotteye/plchat
Maintainer: Knott Eye<knotteye@airmail.cc>
Depends: python3 (>=3.8.0), PyQt5 (=5.15.2), dbus, libmagic1, python-pyqt5.qtmultimedia, libc6, libgstreamer-plugins-bad1.0-0, qtgstreamer-plugins-qt5
Pre-Depends: python3 (= 3.8.0~), python3-pip(>= 19.3), python3-venv, bash
Depends: dbus, libmagic1, libc6, gstreamer1.0-nice, gstreamer1.0-libav, gstreamer1.0-plugins-bad, gstreamer1.0-plugins-good, gstreamer1.0-plugins-ugly, gstreamer1.0-qt5, gstreamer1.0-plugins-base, gstreamer1.0-python3-plugin-loader
Suggests: gnome-keyring (>= 2.30)

View File

@ -1,2 +1,6 @@
#!/bin/sh
ln -sf /usr/lib/plchat/plchat /usr/bin/plchat
#!/bin/bash
mkdir -p /usr/lib/plchat
cd /usr/lib/plchat
python3 -m venv venv
source venv/bin/activate
pip3 install PyQt5==5.15.4 PyQt5-Qt5 PyQt5-sip certifi cryptography

View File

@ -1,2 +1,3 @@
#!/bin/sh
rm -rf /usr/lib/plchat
rm -f /usr/bin/plchat