-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild_exe.spec
More file actions
95 lines (90 loc) · 2.66 KB
/
build_exe.spec
File metadata and controls
95 lines (90 loc) · 2.66 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# -*- mode: python ; coding: utf-8 -*-
import os
block_cipher = None
# Get absolute path to icon file
spec_dir = os.path.dirname(os.path.abspath(SPEC))
icon_path = os.path.abspath(os.path.join(spec_dir, 'PolyCouncilIco.ico'))
if not os.path.exists(icon_path):
icon_path = None # Fallback if icon not found
print(f"Warning: Icon file not found at {icon_path}")
else:
print(f"Using icon: {icon_path}")
# Verify icon is readable
try:
with open(icon_path, 'rb') as f:
header = f.read(6)
if header[:2] != b'\x00\x00' or header[2:4] != b'\x01\x00':
print(f"Warning: Icon file may not be valid ICO format")
except Exception as e:
print(f"Warning: Could not verify icon file: {e}")
a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[
('gui/main.qml', 'gui'),
('config/default_personas.json', 'config'),
('PolyCouncilIco.ico', '.'),
('gui/components/AppButton.qml', 'gui/components'),
('gui/components/Eyebrow.qml', 'gui/components'),
('gui/components/GlassPanel.qml', 'gui/components'),
('gui/components/ModeButton.qml', 'gui/components'),
('gui/components/SectionTitle.qml', 'gui/components'),
('gui/components/SoftBadge.qml', 'gui/components'),
('gui/components/Theme.qml', 'gui/components'),
('gui/components/qmldir', 'gui/components'),
],
hiddenimports=[
'PySide6.QtCore',
'PySide6.QtGui',
'PySide6.QtQml',
'PySide6.QtQuick',
'PySide6.QtQuickControls2',
'PySide6.QtWidgets',
'aiohttp',
'aiohttp.client',
'aiohttp.connector',
'aiohttp.helpers',
'aiohttp.http_parser',
'aiohttp.streams',
'aiohttp.typedefs',
'aiohttp.web',
'qasync',
'keyring',
'bleach',
'pypdf',
'sqlite3',
'asyncio',
],
hookspath=[],
hooksconfig={},
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='PolyCouncil',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False, # Disabled - can interfere with icon embedding
upx_exclude=[],
runtime_tmpdir=None,
console=False, # No console window (GUI app)
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=icon_path, # Application icon
)