-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathym.spec
More file actions
42 lines (42 loc) · 981 Bytes
/
ym.spec
File metadata and controls
42 lines (42 loc) · 981 Bytes
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
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['src\\dow_jones.py'],
pathex=[],
binaries=[],
datas=[('config.ini', '.')],
hiddenimports=['cryptography.hazmat.primitives.kdf.pbkdf2'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='dow_jones', # or 'main' if you prefer
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='dow_jones' # This controls the output folder: dist/dow_jones/
)
import shutil
shutil.copyfile('config.ini', 'dist/dow_jones/config.ini') # Adjust path to match new folder