forked from awth13/Linux-Arctis-7-Plus-ChatMix
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy patharctis-manager.spec
More file actions
58 lines (51 loc) · 1.58 KB
/
Copy patharctis-manager.spec
File metadata and controls
58 lines (51 loc) · 1.58 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
# -*- mode: python ; coding: utf-8 -*-
from pathlib import Path
import sys
import subprocess
from PyInstaller.utils.hooks import collect_submodules
sys.path.append('.')
hiddenimports = ['PyQt6', 'PyQt6.sip']
hiddenimports += collect_submodules('arctis_manager.devices')
python_ver_p = subprocess.run('python --version', shell=True, check=True, stdout=subprocess.PIPE)
python_ver = '.'.join(python_ver_p.stdout.decode('utf-8').replace('Python ', '').split('.')[0:2])
which_python_p = subprocess.run('which python', shell=True, check=True, stdout=subprocess.PIPE)
pyqt6_path = Path(which_python_p.stdout.decode('utf-8')).parent.parent.joinpath('lib64', f'python{python_ver}', 'site-packages', 'PyQt6', 'Qt6')
print(str(pyqt6_path))
a = Analysis(
['arctis_manager.py'],
pathex=['.'],
binaries=[],
datas=[
('arctis_manager/images/steelseries_logo.svg', 'arctis_manager/images/'),
('arctis_manager/lang/*.json', 'arctis_manager/lang/'),
(pyqt6_path.joinpath('plugins', 'platforms'), 'PyQt6/Qt6/plugins/platforms/'),
],
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='arctis-manager',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)