Change compile options to dynamically get file location

develop 1.0.2
knotteye 2021-04-22 15:00:35 -05:00
parent 1e1ee7cae5
commit d3f3f5933e
1 changed files with 5 additions and 8 deletions

View File

@ -18,23 +18,20 @@ deb: debtarget pack packdeb
windows: windowstarget
default:
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
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
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
debtarget:
ifeq (,$(findstring bash,$(SHELL)))
echo "You will need to make .deb packages using bash"
exit 1
endif
echo "You will need to make .deb packages using bash, ensuring you are doing so."
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
pip3 install keyring notify-py appdirs python-dateutil requests urllib3 websockets PyQt5 python-magic
python3 -m nuitka --file-reference-choice=runtime --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:
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 --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
pack:
mkdir dist