From 28f381deb76d79da69e2ee608590c0e6543385b8 Mon Sep 17 00:00:00 2001 From: Ircama Date: Mon, 29 Jul 2024 11:13:15 +0200 Subject: [PATCH] Add epson_print_conf.spec --- .gitignore | 2 +- epson_print_conf.spec | 52 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 epson_print_conf.spec diff --git a/.gitignore b/.gitignore index 7024254..5004f20 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ MANIFEST # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest -*.spec +# *.spec # Installer logs pip-log.txt diff --git a/epson_print_conf.spec b/epson_print_conf.spec new file mode 100644 index 0000000..5896ef7 --- /dev/null +++ b/epson_print_conf.spec @@ -0,0 +1,52 @@ +# -*- mode: python ; coding: utf-8 -*- + +import argparse + +parser = argparse.ArgumentParser() +parser.add_argument("--default", action="store_true") +options = parser.parse_args() + +PROGRAM = [ 'gui.py' ] +DATAS = [('printer_conf.pickle', '.')] + +if options.default: + PROGRAM = [ 'ui.py' ] + DATAS = [] + +a = Analysis( + PROGRAM, + pathex=[], + binaries=[], + datas=DATAS, + hiddenimports=['babel.numbers'], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) + +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='epson_print_conf', + 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, +) +