plchat/deb/DEBIAN/postinst

11 lines
331 B
Plaintext
Raw Permalink Normal View History

2021-04-18 19:40:58 -05:00
#!/bin/bash
mkdir -p /usr/lib/plchat
cd /usr/lib/plchat
2021-04-25 14:37:04 -05:00
python3 -m venv --system-site-packages venv
2021-04-18 19:40:58 -05:00
source venv/bin/activate
2021-04-25 14:37:04 -05:00
pip3 install PyQt5==5.15.4 PyQt5-Qt5 PyQt5-sip notify-py
2021-04-25 14:50:04 -05:00
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