Skip to content

Commit c15ce81

Browse files
committed
fix: Correctly package tkinterdnd2 data files
1 parent d6b07a3 commit c15ce81

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

build.spec

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
# -*- mode: python ; coding: utf-8 -*-
22
from PyInstaller.utils.hooks import collect_data_files
33

4+
datas = [
5+
('BGM.ttf', '.'),
6+
('bz2.png', '.'),
7+
('bz98.png', '.'),
8+
('BZONE.ttf', '.'),
9+
('modman.ico', '.'),
10+
('file_version_info.txt', '.'),
11+
('INSTALL_LINUX_GOG.md', '.'),
12+
('LICENSE', '.'),
13+
('README.md', '.')
14+
]
15+
datas += collect_data_files('tkinterdnd2')
16+
417
a = Analysis(
518
['cmd.py'],
619
pathex=[],
720
binaries=[],
8-
datas=[
9-
('BGM.ttf', '.'),
10-
('bz2.png', '.'),
11-
('bz98.png', '.'),
12-
('BZONE.ttf', '.'),
13-
('modman.ico', '.'),
14-
('file_version_info.txt', '.'),
15-
('INSTALL_LINUX_GOG.md', '.'),
16-
('LICENSE', '.'),
17-
('README.md', '.')
18-
],
21+
datas=datas,
1922
hiddenimports=['PIL'],
2023
hookspath=[],
2124
hooksconfig={},
2225
runtime_hooks=[],
2326
excludes=[],
2427
noarchive=False,
2528
)
26-
a.datas += collect_data_files('tkinterdnd2')
2729

2830
pyz = PYZ(a.pure)
2931

0 commit comments

Comments
 (0)