-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultiClaw.spec
More file actions
152 lines (144 loc) · 4.69 KB
/
Copy pathMultiClaw.spec
File metadata and controls
152 lines (144 loc) · 4.69 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# -*- mode: python ; coding: utf-8 -*-
# MultiClaw - PyInstaller spec file
# Build with: pyinstaller MultiClaw.spec
import sys
import platform
from pathlib import Path
from PyInstaller.utils.hooks import collect_data_files
# Get the project root
spec_dir = Path(SPECPATH)
src_dir = spec_dir / 'src'
assets_dir = spec_dir / 'assets'
skills_dir = src_dir / 'multiclaw' / 'skills'
# Platform-specific icon
if platform.system() == 'Darwin':
icon_file = assets_dir / 'icon256.icns'
elif platform.system() == 'Windows':
icon_file = assets_dir / 'icon256.ico'
else:
# Linux - use PNG (PyInstaller will handle it)
icon_file = assets_dir / 'icon256.ico' # Fallback, Linux doesn't embed icons the same way
# Collect mnemonic wordlist data files (english.txt, etc.)
mnemonic_datas = collect_data_files('mnemonic')
# Collect eth_account wordlist data files (used by eth_account.hdaccount.mnemonic)
eth_account_datas = collect_data_files('eth_account')
a = Analysis(
[str(src_dir / 'multiclaw_entry.py')],
pathex=[str(src_dir)],
binaries=[],
datas=[
(str(assets_dir / 'icon256.ico'), 'assets'),
(str(assets_dir / 'icon256.icns'), 'assets'),
(str(assets_dir / 'wm_stacked.png'), 'assets'),
# Include skills folder for agent instructions (SKILL.md served via /agent endpoint)
(str(skills_dir), 'skills'),
] + mnemonic_datas + eth_account_datas,
hiddenimports=[
# PyQt6
'PyQt6.QtCore',
'PyQt6.QtGui',
'PyQt6.QtWidgets',
# Cryptography - core modules for signing
'cryptography.hazmat.primitives.asymmetric.ed25519',
'cryptography.hazmat.primitives.asymmetric.ec',
'cryptography.hazmat.primitives.asymmetric.utils',
'cryptography.hazmat.primitives.ciphers.aead',
'cryptography.hazmat.primitives.hashes',
'cryptography.hazmat.primitives.serialization',
'cryptography.hazmat.backends.openssl',
'cryptography.hazmat.backends.openssl.backend',
'argon2',
'argon2.low_level',
# Ethereum - account and signing
'eth_account',
'eth_account.hdaccount',
'eth_account.messages',
'eth_account.signers',
'eth_account.signers.local',
'eth_account._utils.encode_typed_data',
'eth_account._utils.encode_typed_data.encoding_and_hashing',
'eth_account._utils.encode_typed_data.helpers',
'eth_account._utils.validation',
'eth_account.types',
'eth_account.datastructures',
'eth_account.account_local_actions',
'eth_account.typed_transactions',
'eth_account.typed_transactions.access_list_transaction',
'eth_account.typed_transactions.dynamic_fee_transaction',
'eth_account._utils.signing',
# Ethereum - keys and utilities
'eth_keys',
'eth_keys.backends',
'eth_keys.backends.native',
'eth_utils',
'eth_utils.conversions',
'eth_utils.address',
'eth_typing',
'eth_hash',
'eth_hash.auto',
'eth_abi',
'eth_abi.packed',
# Mnemonic
'mnemonic',
# Web3
'web3',
'web3.auto',
'web3.providers',
'web3.exceptions',
# File watching
'watchdog',
'watchdog.observers',
'watchdog.observers.polling',
'watchdog.observers.read_directory_changes', # Windows
'watchdog.events',
# Standard library often missed
'json',
'hashlib',
'secrets',
'uuid',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='MultiClaw',
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(icon_file),
)
# macOS-specific: Create .app bundle
if platform.system() == 'Darwin':
app = BUNDLE(
exe,
name='MultiClaw.app',
icon=str(icon_file),
bundle_identifier='systems.primer.multiclaw',
info_plist={
'CFBundleName': 'MultiClaw',
'CFBundleDisplayName': 'MultiClaw',
'CFBundleVersion': '2.1.0',
'CFBundleShortVersionString': '2.1.0',
'NSHighResolutionCapable': True,
'LSMinimumSystemVersion': '10.15',
},
)