Add pyinstaller option for linux platform

This commit is contained in:
2023-01-26 19:45:12 +01:00
parent 43d03cc254
commit bfaa07aeb4
3 changed files with 16 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ build: build_ui build_rc
$(PYTHON) -m setup sdist
$(PYTHON) -m setup bdist_wheel
install:
install: build
$(PYTHON) -m pip install dist/$(PACKAGE)-*.whl
.PHONY: build install
@@ -96,7 +96,19 @@ installer_mac_dmg: installer_mac
dist/$(APP_NAME)\ $(APP_VERSION).dmg \
dist/dmg
.PHONY: installer_mac installer_mac_dmg
installer_linux: build_ui build_rc
$(PYTHON) -m PyInstaller -n $(APP_NAME) \
--add-data="src/$(PACKAGE)/locale:./$(PACKAGE)/locale" \
--add-data="data/$(PACKAGE).ico:." \
--add-data="data/$(PACKAGE).png:." \
--icon=data/$(PACKAGE).ico \
--noconfirm \
--clean \
--onedir \
--windowed \
src/$(PACKAGE)/__main__.py
.PHONY: installer_mac installer_mac_dmg installer_linux
## Clean
clean:

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
"""Setupscript for RevPiCommander."""
"""Setup script for RevPiCommander."""
__author__ = "Sven Sager"
__copyright__ = "Copyright (C) 2018 Sven Sager"
__license__ = "GPLv3"

View File

@@ -548,6 +548,7 @@ class RevPiCommander(QtWidgets.QMainWindow, Ui_win_revpicommander):
def main() -> int:
"""Entry point for RevPiCommander."""
from sys import argv
if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):