From 1c1d1a57d5846c803bf9a3c4f2f85916993999c0 Mon Sep 17 00:00:00 2001 From: Denys SAVCHENKO Date: Sat, 29 Jun 2024 23:27:10 +0200 Subject: [PATCH] packaging options --- hook-flask_bootstrap.py | 2 ++ screenshare.spec | 20 +++++++------------- 2 files changed, 9 insertions(+), 13 deletions(-) create mode 100644 hook-flask_bootstrap.py diff --git a/hook-flask_bootstrap.py b/hook-flask_bootstrap.py new file mode 100644 index 0000000..d6b8ad7 --- /dev/null +++ b/hook-flask_bootstrap.py @@ -0,0 +1,2 @@ +from PyInstaller.utils.hooks import collect_data_files +datas = collect_data_files('flask_bootstrap') \ No newline at end of file diff --git a/screenshare.spec b/screenshare.spec index 62dd5d7..a868cb8 100644 --- a/screenshare.spec +++ b/screenshare.spec @@ -3,11 +3,11 @@ a = Analysis( ['screenshare.py'], - pathex=[], + pathex=['.'], binaries=[], - datas=[], + datas=[('static', 'static'), ('templates', 'templates')], hiddenimports=[], - hookspath=[], + hookspath=['.'], hooksconfig={}, runtime_hooks=[], excludes=[], @@ -19,13 +19,16 @@ pyz = PYZ(a.pure) exe = EXE( pyz, a.scripts, + a.binaries, + a.datas, [], - exclude_binaries=True, name='screenshare', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, + upx_exclude=[], + runtime_tmpdir=None, console=True, disable_windowed_traceback=False, argv_emulation=False, @@ -33,12 +36,3 @@ exe = EXE( codesign_identity=None, entitlements_file=None, ) -coll = COLLECT( - exe, - a.binaries, - a.datas, - strip=False, - upx=True, - upx_exclude=[], - name='screenshare', -)