mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
Add pyinstaller option for linux platform
This commit is contained in:
16
Makefile
16
Makefile
@@ -59,7 +59,7 @@ build: build_ui build_rc
|
|||||||
$(PYTHON) -m setup sdist
|
$(PYTHON) -m setup sdist
|
||||||
$(PYTHON) -m setup bdist_wheel
|
$(PYTHON) -m setup bdist_wheel
|
||||||
|
|
||||||
install:
|
install: build
|
||||||
$(PYTHON) -m pip install dist/$(PACKAGE)-*.whl
|
$(PYTHON) -m pip install dist/$(PACKAGE)-*.whl
|
||||||
|
|
||||||
.PHONY: build install
|
.PHONY: build install
|
||||||
@@ -96,7 +96,19 @@ installer_mac_dmg: installer_mac
|
|||||||
dist/$(APP_NAME)\ $(APP_VERSION).dmg \
|
dist/$(APP_NAME)\ $(APP_VERSION).dmg \
|
||||||
dist/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
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
@@ -548,6 +548,7 @@ class RevPiCommander(QtWidgets.QMainWindow, Ui_win_revpicommander):
|
|||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
|
"""Entry point for RevPiCommander."""
|
||||||
from sys import argv
|
from sys import argv
|
||||||
|
|
||||||
if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
|
if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
|
||||||
|
|||||||
Reference in New Issue
Block a user