Tweak windows build targets

develop
knotteye 2021-04-24 15:38:35 -05:00
parent 863a0ef45c
commit 51ee61ff26
1 changed files with 10 additions and 4 deletions

View File

@ -4,25 +4,29 @@ endif
ifeq ($(LIBDIR),) ifeq ($(LIBDIR),)
LIBDIR := lib/ LIBDIR := lib/
endif endif
VER = $(shell cat installer.cfg | grep version= | head -n 1 | sed s/version=//)
all: default pack all: default pack
systemlibs: systemlibtarget pack systemlibs: systemlibtarget pack
windows: wtarget wpack
default: 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 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
systemlibtarget: 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 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
windows: windowstarget:
cat windows.patch > plchatwindows.py cat windows.patch > plchatwindows.py
cat plchat.py >> plchatwindows.py cat plchat.py >> plchatwindows.py
makensis -VERSION || die "No makensis in path" makensis -VERSION || die "No makensis in path"
python3 -m nsist installer.cfg python3 -m nsist installer.cfg
mv build/nsis/PlChat_*.exe
zip plchat_windows.zip PlChat_*.exe wpack:
mv build/nsis/PlChat_$(VER).exe .
zip plchat_windows.zip PlChat_$(VER).exe
pack: pack:
mkdir dist mkdir dist
@ -43,6 +47,8 @@ dpkg:
clean: clean:
rm -r dist || true rm -r dist || true
rm -r build || true
rm -r deb/usr || true
install: install:
mkdir $(PREFIX)$(LIBDIR) mkdir $(PREFIX)$(LIBDIR)