Add build script for nuitka3
parent
a48062026d
commit
411198c3ff
|
@ -1 +1,3 @@
|
||||||
__pycache__
|
__pycache__
|
||||||
|
plchat.build
|
||||||
|
dist
|
26
Makefile
26
Makefile
|
@ -1,8 +1,28 @@
|
||||||
ifeq ($(PREFIX),)
|
ifeq ($(PREFIX),)
|
||||||
PREFIX := /usr/local
|
PREFIX := /usr/local
|
||||||
endif
|
endif
|
||||||
|
PRODUCTVER=0001
|
||||||
|
|
||||||
|
|
||||||
all: release
|
all: default pack
|
||||||
release:
|
|
||||||
nuitka3 --follow-imports --prefer-source-code plchat.py
|
fresh: clean default pack
|
||||||
|
|
||||||
|
systemlibs: systemlibtarget pack
|
||||||
|
|
||||||
|
default:
|
||||||
|
nuitka3 --follow-imports --nofollow-import-to=PyQt5 --nofollow-import-to=PySide --nofollow-import-to=PyQt4 --nofollow-import-to=PySide2 --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
|
||||||
|
|
||||||
|
systemlibtarget:
|
||||||
|
nuitka3 --nofollow-imports --follow-import=misc --follow-import=monkeypatch --follow-import=pleroma --follow-import=timeconvert --follow-import=videowidget --follow-import=audiowidget --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
|
||||||
|
|
||||||
|
pack:
|
||||||
|
mkdir dist
|
||||||
|
mv plchat dist
|
||||||
|
cp fedi.svg dist
|
||||||
|
cp fedi.ico dist
|
||||||
|
cp send.svg dist
|
||||||
|
cp unread.svg dist
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -r dist || true
|
Loading…
Reference in New Issue