Add epson_print_conf.spec

This commit is contained in:
Ircama 2024-07-29 11:13:15 +02:00
parent 53ac3f6515
commit 28f381deb7
2 changed files with 53 additions and 1 deletions

2
.gitignore vendored
View file

@ -30,7 +30,7 @@ MANIFEST
# Usually these files are written by a python script from a template # 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. # before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest *.manifest
*.spec # *.spec
# Installer logs # Installer logs
pip-log.txt pip-log.txt

52
epson_print_conf.spec Normal file
View file

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