Fix PyInstaller parameter: use --workpath instead of --buildpath

This commit is contained in:
Quality App Developer
2026-02-05 11:40:58 +02:00
parent 8301fc8ef4
commit f2a2ca7d97
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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',