From 4b55caca8734a31a1dd690fa8c414d9364bd3fd7 Mon Sep 17 00:00:00 2001 From: knotteye Date: Sun, 25 Apr 2021 14:50:04 -0500 Subject: [PATCH] Fix .deb --- Makefile | 1 - deb/DEBIAN/postinst | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 54bb83c..90ab030 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,6 @@ debtarget: cp pleroma.py deb/usr/lib/plchat cp monkeypatch.py deb/usr/lib/plchat cp timeconvert.py deb/usr/lib/plchat - cp plchatdeb.py deb/usr/lib/plchat cp videowidget.py deb/usr/lib/plchat systemlibtarget: diff --git a/deb/DEBIAN/postinst b/deb/DEBIAN/postinst index 1f24007..27c4e66 100755 --- a/deb/DEBIAN/postinst +++ b/deb/DEBIAN/postinst @@ -4,4 +4,7 @@ cd /usr/lib/plchat python3 -m venv --system-site-packages venv source venv/bin/activate pip3 install PyQt5==5.15.4 PyQt5-Qt5 PyQt5-sip notify-py -ln -sf /usr/lib/plchat/plchatdeb.py /usr/bin/plchat +echo "#!/bin/sh" > /usr/bin/plchat +echo "/usr/lib/plchat/venv/bin/python /usr/plib/plchat/plchatdeb.py" >> /usr/bin/plchat +chmod +x /usr/bin/plchat +