diff --git a/.gitignore b/.gitignore index 73314a8..bc7f1b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ # Build artifacts build/ -*.spec - # Python cache __pycache__/ *.pyc diff --git a/LabelPrinter.spec b/LabelPrinter.spec new file mode 100644 index 0000000..e29d4c3 --- /dev/null +++ b/LabelPrinter.spec @@ -0,0 +1,38 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['label_printer_gui.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=['kivy', 'PIL', 'barcode', 'reportlab', 'print_label', 'print_label_pdf', 'svglib', 'cairosvg', 'watchdog', 'watchdog.observers', 'watchdog.events', 'pystray'], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='LabelPrinter', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) diff --git a/dist/LabelPrinter.exe b/dist/LabelPrinter.exe new file mode 100644 index 0000000..6ed2f09 Binary files /dev/null and b/dist/LabelPrinter.exe differ diff --git a/dist/conf/app.conf b/dist/conf/app.conf new file mode 100644 index 0000000..168c69a --- /dev/null +++ b/dist/conf/app.conf @@ -0,0 +1,4 @@ +[Settings] +file_path = C:\Users\Public\Documents\check.txt +printer = Microsoft Print to P + diff --git a/dist/conf/label_template.svg b/dist/conf/label_template.svg new file mode 100644 index 0000000..a1be348 --- /dev/null +++ b/dist/conf/label_template.svg @@ -0,0 +1,16 @@ + + + + + + + Nr. Comanda: {Article} + Nr. Art.: {NrArt} + Serial No.: {Serial} + + + + \ No newline at end of file diff --git a/dist/conf/label_template_nok.svg b/dist/conf/label_template_nok.svg new file mode 100644 index 0000000..9ab1d55 --- /dev/null +++ b/dist/conf/label_template_nok.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Nr. Comanda:{Article} + + + Nr. Art.:{NrArt} + + + Serial No.:{Serial} + + + + + + + + diff --git a/dist/conf/label_template_ok.svg b/dist/conf/label_template_ok.svg new file mode 100644 index 0000000..843c10f --- /dev/null +++ b/dist/conf/label_template_ok.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Nr. Comanda:{Article} + + + Nr. Art.:{NrArt} + + + Serial No.:{Serial} + + + + + + + +