From f524243291ce0c6ead9a7ea5db02ebaa39089993 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Tue, 15 Sep 2026 15:44:35 +0300 Subject: [PATCH] add spec --- car_ui.spec | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/car_ui.spec b/car_ui.spec index 07390cb..4710ad4 100644 --- a/car_ui.spec +++ b/car_ui.spec @@ -1,10 +1,27 @@ # -*- mode: python ; coding: utf-8 -*- +from pathlib import Path +import PySide6 + +pyside_dir = Path(PySide6.__file__).parent + +eglfs_kms_plugin = ( + pyside_dir + / "Qt" + / "plugins" + / "egldeviceintegrations" + / "libqeglfs-kms-integration.so" +) a = Analysis( - ['main.py'], + ["main.py"], pathex=[], - binaries=[], + binaries=[ + ( + str(eglfs_kms_plugin), + "PySide6/Qt/plugins/egldeviceintegrations", + ), + ], datas=[], hiddenimports=[], hookspath=[], @@ -14,6 +31,7 @@ a = Analysis( noarchive=False, optimize=0, ) + pyz = PYZ(a.pure) exe = EXE( @@ -21,7 +39,7 @@ exe = EXE( a.scripts, [], exclude_binaries=True, - name='car_ui', + name="car_ui", debug=False, bootloader_ignore_signals=False, strip=False, @@ -33,6 +51,7 @@ exe = EXE( codesign_identity=None, entitlements_file=None, ) + coll = COLLECT( exe, a.binaries, @@ -40,5 +59,5 @@ coll = COLLECT( strip=False, upx=True, upx_exclude=[], - name='car_ui', + name="car_ui", )