From f2a2ca7d971f5642c6e452ccd76312f15d5be492 Mon Sep 17 00:00:00 2001 From: Quality App Developer Date: Thu, 5 Feb 2026 11:40:58 +0200 Subject: [PATCH] Fix PyInstaller parameter: use --workpath instead of --buildpath --- .github/workflows/build-windows.yml | 2 +- build_exe.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 53a446e..e423ea7 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -29,7 +29,7 @@ jobs: - name: Build executable with PyInstaller run: | - pyinstaller label_printer_gui.py --onefile --windowed --name=LabelPrinter --distpath=./dist --buildpath=./build --hidden-import=kivy --hidden-import=kivy.core.window --hidden-import=kivy.core.text --hidden-import=kivy.core.image --hidden-import=kivy.uix.boxlayout --hidden-import=kivy.uix.gridlayout --hidden-import=kivy.uix.label --hidden-import=kivy.uix.textinput --hidden-import=kivy.uix.button --hidden-import=kivy.uix.spinner --hidden-import=kivy.uix.scrollview --hidden-import=kivy.uix.popup --hidden-import=kivy.clock --hidden-import=kivy.graphics --hidden-import=PIL --hidden-import=barcode --hidden-import=reportlab --hidden-import=print_label --hidden-import=print_label_pdf + pyinstaller label_printer_gui.py --onefile --windowed --name=LabelPrinter --distpath=./dist --workpath=./build --hidden-import=kivy --hidden-import=kivy.core.window --hidden-import=kivy.core.text --hidden-import=kivy.core.image --hidden-import=kivy.uix.boxlayout --hidden-import=kivy.uix.gridlayout --hidden-import=kivy.uix.label --hidden-import=kivy.uix.textinput --hidden-import=kivy.uix.button --hidden-import=kivy.uix.spinner --hidden-import=kivy.uix.scrollview --hidden-import=kivy.uix.popup --hidden-import=kivy.clock --hidden-import=kivy.graphics --hidden-import=PIL --hidden-import=barcode --hidden-import=reportlab --hidden-import=print_label --hidden-import=print_label_pdf - name: Upload Windows executable as artifact uses: actions/upload-artifact@v4 diff --git a/build_exe.py b/build_exe.py index 4a0d56e..79d271c 100644 --- a/build_exe.py +++ b/build_exe.py @@ -26,7 +26,7 @@ args = [ '--windowed', # Don't show console window '--name=LabelPrinter', # Executable name '--distpath=./dist', # Output directory - '--buildpath=./build', # Build directory + '--workpath=./build', # Work directory (was --buildpath) '--hidden-import=kivy', '--hidden-import=kivy.core.window', '--hidden-import=kivy.core.text',