-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsherlock.spec
More file actions
53 lines (49 loc) · 1.26 KB
/
sherlock.spec
File metadata and controls
53 lines (49 loc) · 1.26 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
# sherlock-python/sherlock.spec
# This is the configuration file for PyInstaller.
# Analysis block: Finds all the Python files and dependencies.
a = Analysis(
['run.py'],
pathex=[],
binaries=[],
datas=[
# This is the most important part.
# It tells PyInstaller to include our entire Django project.
('sherlock', 'sherlock'),
('inventory', 'inventory'),
('static', 'static'),
('templates', 'templates'),
],
hiddenimports=[
'inventory.apps.InventoryConfig',
'whitenoise.middleware',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
# PYC block: Handles the compiled Python files.
pyz = PYZ(a.pure)
# EXE block: Creates the final executable file.
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='Sherlock', # This will be the name of your .exe file
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True, # Set to True to see server output, False for a "windowless" app
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)