-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConvertAll.spec
More file actions
49 lines (43 loc) · 1.12 KB
/
Copy pathConvertAll.spec
File metadata and controls
49 lines (43 loc) · 1.12 KB
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
44
45
46
47
48
49
# PyInstaller build spec.
# pyinstaller --noconfirm ConvertAll.spec
#
# Produces dist/ConvertAll/ containing ConvertAll.exe. The FFmpeg binary that
# ships inside imageio-ffmpeg is collected too, so the build runs on a machine
# with no FFmpeg installed.
from PyInstaller.utils.hooks import collect_data_files
datas = [("assets/icon.ico", "assets"), ("assets/icon.png", "assets")]
datas += collect_data_files("imageio_ffmpeg")
datas += collect_data_files("customtkinter")
datas += collect_data_files("tkinterdnd2")
a = Analysis(
["run.py"],
pathex=[],
binaries=[],
datas=datas,
hiddenimports=["PIL._tkinter_finder", "pillow_heif", "potrace"],
hookspath=[],
runtime_hooks=[],
excludes=["pytest", "matplotlib", "IPython"],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name="ConvertAll",
debug=False,
strip=False,
upx=False,
console=False, # GUI app - no console window
icon="assets/icon.ico",
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=False,
name="ConvertAll",
)