-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.spec
43 lines (39 loc) · 1.25 KB
/
app.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['app.py'], # Main script
pathex=[], # Additional paths, if needed
binaries=[], # External binaries (we'll add ffmpeg later)
datas=[('/usr/bin/ffmpeg', 'ffmpeg')], # Add ffmpeg to the bundle
hiddenimports=[], # Any hidden imports can be added here
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[], # Modules to exclude
noarchive=False,
)
# Build a .pyz archive of all the pure Python files
pyz = PYZ(a.pure)
# Bundle the .pyz with binaries, scripts, and any additional files
exe = EXE(
pyz,
a.scripts, # Scripts to be included
a.binaries, # External binaries like ffmpeg
a.datas, # Data files like ffmpeg.exe
[],
name='app', # Name of the final executable
debug=False,
bootloader_ignore_signals=False,
strip=True,
noarchive=True,
upx=True, # Use UPX to compress the executable (optional)
upx_exclude=[],
runtime_tmpdir=None,
console=False, # Set to False if you don't want a console window
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
onefile=True, # Bundle everything into one .exe file
)