-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcvmaker.spec
More file actions
67 lines (59 loc) · 1.71 KB
/
Copy pathcvmaker.spec
File metadata and controls
67 lines (59 loc) · 1.71 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# PyInstaller build: python -m PyInstaller cvmaker.spec
#
# Produces dist/CVMaker/CVMaker.exe. Qt is linked dynamically (PyInstaller's
# default), which is what PySide6's LGPL licence requires -- do not switch
# this to a static bundle.
import os
block_cipher = None
# An icon is optional; drop installer/cvmaker.ico in and it is used here
# and by the installer automatically.
_icon = "installer/cvmaker.ico"
icon = _icon if os.path.isfile(_icon) else None
# Set CVMAKER_CONSOLE=1 to build with a console attached. A windowed build
# swallows stdout and stderr, so this is how startup failures in the frozen
# app get diagnosed.
console = os.environ.get("CVMAKER_CONSOLE") == "1"
a = Analysis(
# Must stay launcher.py: PyInstaller runs the entry script without a
# package context, which breaks the package module's relative
# imports. See the docstring in launcher.py.
["launcher.py"],
pathex=[],
binaries=[],
datas=[
("cvmaker/templates", "cvmaker/templates"),
# The app reads its version from this at runtime; see cvmaker/__init__.
("VERSION", "."),
("examples/sample_profile.json", "examples"),
],
hiddenimports=[
"PySide6.QtWebEngineCore",
"PySide6.QtWebEngineWidgets",
],
hookspath=[],
runtime_hooks=[],
excludes=["tkinter", "matplotlib", "numpy"],
cipher=block_cipher,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name="CVMaker",
debug=False,
strip=False,
upx=False,
console=console,
icon=icon,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
name="CVMaker",
)