From edd5d874777d6437ec78d725609c94aa9709fb08 Mon Sep 17 00:00:00 2001 From: knotteye Date: Sat, 24 Apr 2021 18:08:54 -0500 Subject: [PATCH] figure out .deb files for real haha totally this time --- Makefile | 9 ++++++++- deb.patch | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 deb.patch diff --git a/Makefile b/Makefile index a73e380..2eca43d 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,18 @@ all: default pack systemlibs: systemlibtarget pack +dpkg: debtarget pack dpkg-build + windows: wtarget wpack default: python3 -m nuitka --follow-imports --file-reference-choice=runtime --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 +debtarget: + cat deb.patch > plchatdeb.py + cat plchat.py >> plchatdeb.py + python3 -m nuitka --follow-imports --file-reference-choice=runtime --nofollow-import-to=certifi --include-module=keyring.backends.kwallet --include-module=keyring.backends.chainer --enable-plugin=qt-plugins --include-qt-plugins=all --python-flag=-O -o plchat plchatdeb.py + systemlibtarget: python3 -m nuitka --file-reference-choice=runtime --nofollow-imports --follow-import-to=misc --follow-import-to=monkeypatch --follow-import-to=pleroma --follow-import-to=timeconvert --follow-import-to=videowidget --follow-import-to=audiowidget --python-flag=-O -o plchat plchat.py @@ -39,7 +46,7 @@ pack: cp LICENSE dist cp COPYING dist -dpkg: +dpkg-build: mkdir -p deb/usr/lib mv dist deb/usr/lib/plchat dpkg --build deb diff --git a/deb.patch b/deb.patch new file mode 100644 index 0000000..3a84ba0 --- /dev/null +++ b/deb.patch @@ -0,0 +1,2 @@ +import sys +sys.path.insert(1, '/usr/lib/plchat/venv/lib/python3.8/site-packages')