-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNativeLab.spec
More file actions
90 lines (83 loc) · 2.64 KB
/
NativeLab.spec
File metadata and controls
90 lines (83 loc) · 2.64 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
# -*- mode: python ; coding: utf-8 -*-
# NativeLab.spec — PyInstaller build for Native Lab Pro v2
# Build command: pyinstaller NativeLab.spec
import sys
from pathlib import Path
block_cipher = None
a = Analysis(
['NativeLab/main.py'], # ← rename to your actual .py filename
pathex=['.'],
binaries=[
# ── llama.cpp binaries (Linux) ─────────────────────────────────────
('llama/bin/llama-cli', 'llama-bin'),
('llama/bin/llama-server', 'llama-bin'),
],
datas=[
# ── Icons ──────────────────────────────────────────────────────────
('icon.ico', '.'),
('icon.png', '.'),
# ── App config (if exists already) ─────────────────────────────────
# ('app_config.json', '.'), # uncomment if you want to ship defaults
],
hiddenimports=[
# PyQt6 modules that PyInstaller misses
'PyQt6.QtWidgets',
'PyQt6.QtGui',
'PyQt6.QtCore',
'PyQt6.sip',
# Optional deps
'psutil',
'PyPDF2',
# stdlib that sometimes gets missed in frozen builds
'multiprocessing',
'multiprocessing.pool',
'concurrent.futures',
'hashlib',
'pickle',
'ast',
'socket',
'http.client',
'json',
'pathlib',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
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,
[],
exclude_binaries=True, # onedir mode — binaries stay separate
name='NativeLabPro',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True, # compress — set False if UPX not installed
console=False, # no black console window on launch
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='icon.ico', # app icon (Windows .ico)
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[
'vcruntime140.dll', # never UPX these — breaks them
'python3*.dll',
'Qt6*.dll',
],
name='NativeLabPro', # output folder name inside dist/
)