Update project files and build output

This commit is contained in:
2026-02-20 14:25:02 +02:00
parent 351fd3dfea
commit 63b46206b6
8 changed files with 11 additions and 47 deletions

42
.gitignore vendored
View File

@@ -1,25 +1,5 @@
# Build artifacts
build/
<<<<<<< HEAD
# Python cache
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
# Virtual environments
venv/
env/
ENV/
# Application data folders
label/
logs/
pdf_backup/
=======
dist/
build/
logs/
pdf_backup/
venv/
@@ -28,24 +8,4 @@ __pycache__/
*.pyc
*.pyo
*.pyd
>>>>>>> 747656e (Fix Windows browse, status label mapping, and repo cleanup)
# User-specific configuration
conf/app.conf
# IDE / Editor
.vscode/
.idea/
*.swp
*.swo
*~
# OS files
.DS_Store
Thumbs.db
desktop.ini
# Python packaging
*.egg-info/
.eggs/
*.egg

View File

@@ -6,7 +6,7 @@ a = Analysis(
pathex=[],
binaries=[],
datas=[],
hiddenimports=['kivy', 'PIL', 'barcode', 'reportlab', 'print_label', 'print_label_pdf', 'svglib', 'cairosvg', 'watchdog', 'watchdog.observers', 'watchdog.events', 'pystray'],
hiddenimports=['kivy', 'kivy.core.window', 'kivy.core.text', 'kivy.core.image', 'kivy.uix.boxlayout', 'kivy.uix.gridlayout', 'kivy.uix.label', 'kivy.uix.textinput', 'kivy.uix.button', 'kivy.uix.spinner', 'kivy.uix.scrollview', 'kivy.uix.popup', 'kivy.clock', 'kivy.graphics', 'PIL', 'barcode', 'reportlab', 'print_label', 'print_label_pdf', 'svglib', 'cairosvg', 'watchdog', 'watchdog.observers', 'watchdog.events', 'pystray', 'win32timezone'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],

View File

@@ -52,6 +52,7 @@ args = [
'--hidden-import=watchdog.observers',
'--hidden-import=watchdog.events',
'--hidden-import=pystray',
'--hidden-import=win32timezone',
]
if __name__ == '__main__':

View File

@@ -78,6 +78,7 @@ pyinstaller label_printer_gui.py ^
--hidden-import=watchdog.observers ^
--hidden-import=watchdog.events ^
--hidden-import=pystray ^
--hidden-import=win32timezone ^
-y
if errorlevel 1 (

View File

@@ -1,4 +1,4 @@
[Settings]
file_path = C:\Users\Public\Documents\check.txt
printer = Microsoft Print to P
file_path = C:\temp\check.txt
printer = ZDesigner ZQ630 Plus

BIN
dist/LabelPrinter.exe vendored Normal file

Binary file not shown.

View File

@@ -15,7 +15,6 @@ from kivy.uix.popup import Popup
from kivy.core.window import Window
from kivy.uix.image import Image as KivyImage
from kivy.graphics import Color, Rectangle
from kivy.uix.filechooser import FileChooserListView
import os
import threading
@@ -646,14 +645,16 @@ printer = PDF
def browse_file(self, instance):
"""Open file browser to select file to monitor"""
# On Windows, use native dialog to avoid missing-library issues with Kivy FileChooser
if platform.system() == 'Windows':
# On Windows, always use native dialog to avoid Kivy FileChooser win32timezone issues in packaged apps
if os.name == 'nt':
selected_file = self._browse_file_windows_native()
if selected_file:
self.file_input.text = selected_file
self.save_config()
return
from kivy.uix.filechooser import FileChooserListView
content = BoxLayout(orientation='vertical', spacing=10, padding=10)
# File chooser

View File

@@ -3,4 +3,5 @@ pillow
pycups
kivy
reportlab
pywin32