Add .deb target
parent
8af9de903c
commit
d32a4d5a06
18
Makefile
18
Makefile
|
@ -13,6 +13,8 @@ fresh: clean default pack
|
||||||
|
|
||||||
systemlibs: systemlibtarget pack
|
systemlibs: systemlibtarget pack
|
||||||
|
|
||||||
|
deb: debtarget pack packdeb
|
||||||
|
|
||||||
windows: windowstarget
|
windows: windowstarget
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -21,6 +23,16 @@ default:
|
||||||
windowstarget:
|
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
|
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:
|
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
|
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 LICENSE dist
|
||||||
cp COPYING 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:
|
clean:
|
||||||
rm -r dist || true
|
rm -r dist || true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue