forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyinstaller.spec
More file actions
45 lines (37 loc) · 1.07 KB
/
pyinstaller.spec
File metadata and controls
45 lines (37 loc) · 1.07 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
# -*- mode: python -*-
# -*- coding: utf-8 -*-
"""
This is a PyInstaller spec file.
"""
import os
from PyInstaller.building.api import PYZ, EXE, COLLECT
from PyInstaller.building.build_main import Analysis
from PyInstaller.utils.hooks import is_module_satisfies
from PyInstaller.archive.pyz_crypto import PyiBlockCipher
# Constants
DEBUG = os.environ.get("CEFPYTHON_PYINSTALLER_DEBUG", False)
a = Analysis(
["../wxpython.py"],
hookspath=["."], # To find "hook-cefpython3.py"
)
if not os.environ.get("PYINSTALLER_CEFPYTHON3_HOOK_SUCCEEDED", None):
raise SystemExit("Error: Pyinstaller hook-cefpython3.py script was "
"not executed or it failed")
pyz = PYZ(a.pure,
a.zipped_data)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name="cefapp",
debug=DEBUG,
strip=False,
upx=False,
console=DEBUG,
icon="../resources/wxpython.ico")
COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
name="cefapp")