-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotepad-X.spec
More file actions
69 lines (61 loc) · 1.75 KB
/
Copy pathNotepad-X.spec
File metadata and controls
69 lines (61 loc) · 1.75 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
68
69
from pathlib import Path
project_dir = Path(SPECPATH)
def collect_files(relative_dir, pattern, destination):
return [
(str(source_path), destination)
for source_path in sorted((project_dir / relative_dir).glob(pattern))
if source_path.is_file()
]
datas = [
(str(project_dir / 'Notepad-X-help.txt'), '.'),
(str(project_dir / 'VERSION'), '.'),
(str(project_dir / 'gfx' / 'Notepad-X.ico'), 'gfx'),
(str(project_dir / 'gfx' / 'splash.png'), 'gfx'),
]
datas += collect_files('audio', '*.mp3', 'audio')
datas += collect_files('cfg/language', '*.yml', 'cfg/language')
datas += collect_files('cfg/themes', '*.json', 'cfg/themes')
datas.append((str(project_dir / 'cfg' / 'spellcheck' / 'en.json.gz'), 'cfg/spellcheck'))
analysis = Analysis(
[str(project_dir / 'Notepad-X.py')],
pathex=[str(project_dir)],
binaries=[],
datas=datas,
hiddenimports=[
'cryptography.hazmat.primitives.ciphers.aead',
'idlelib.colorizer',
'idlelib.percolator',
'PIL.Image',
'PIL.ImageTk',
'spellchecker',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=['numpy', 'psutil', 'requests'],
noarchive=False,
optimize=1,
)
pyz = PYZ(analysis.pure)
exe = EXE(
pyz,
analysis.scripts,
analysis.binaries,
analysis.datas,
[],
name='Notepad-X',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=str(project_dir / 'gfx' / 'Notepad-X.ico'),
version=str(project_dir / 'Notepad-X.Version.File.txt'),
)