-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathimportador.spec
51 lines (45 loc) · 1.53 KB
/
importador.spec
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
# -*- mode: python ; coding: utf-8 -*-
import os
import platform
import re
block_cipher = None
datas_dict = list()
datas_dict.append((os.path.join('res', 'bgg_ludo.png'), 'res'))
# Get all qt platform files
virtual_env_dir = os.environ['VIRTUAL_ENV']
qt_plugin_platform_dir = os.path.join(virtual_env_dir, 'Lib', 'site-packages', 'PySide6', 'plugins', 'platforms')
plugin_platform_dest = os.path.join('plugins', 'platforms')
for _, _, files in os.walk(qt_plugin_platform_dir):
for file in files:
datas_dict.append((os.path.join(qt_plugin_platform_dir, file), plugin_platform_dest))
# Choose icon file to use for the binary
icon = os.path.join('res', 'bgg_ludo.ico') if platform.system() == 'Windows' else os.path.join('res', 'bgg_ludo.icns')
a = Analysis(['importador.py'],
pathex=[os.getcwd()],
binaries=[],
datas=datas_dict,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='importador',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
icon=icon)