-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOffGallery.spec
More file actions
133 lines (120 loc) · 2.71 KB
/
OffGallery.spec
File metadata and controls
133 lines (120 loc) · 2.71 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
# -*- mode: python ; coding: utf-8 -*-
"""
OffGallery - PyInstaller Spec File
Genera: dist/OffGallery/OffGallery.exe
"""
import sys
from pathlib import Path
# Directory sorgente
SRC_DIR = Path(SPECPATH)
a = Analysis(
['gui_launcher.py'],
pathex=[str(SRC_DIR)],
binaries=[],
datas=[
# Risorse grafiche
('assets', 'assets'),
# Modelli BRISQUE (piccoli, inclusi)
('brisque_models', 'brisque_models'),
# ExifTool (perl + dll)
('exiftool_files', 'exiftool_files'),
# Utils module
('utils', 'utils'),
],
hiddenimports=[
# PyQt6
'PyQt6',
'PyQt6.QtCore',
'PyQt6.QtGui',
'PyQt6.QtWidgets',
'PyQt6.sip',
# Torch
'torch',
'torch.nn',
'torch.nn.functional',
'torchvision',
'torchvision.transforms',
# Transformers / HuggingFace
'transformers',
'transformers.models.clip',
'transformers.models.auto',
'huggingface_hub',
'safetensors',
'tokenizers',
# BioCLIP
'bioclip',
'open_clip',
'timm',
# Image processing
'PIL',
'PIL.Image',
'rawpy',
'cv2',
'numpy',
# Translation
'argostranslate',
'argostranslate.translate',
'argostranslate.package',
'ctranslate2',
'sentencepiece',
# Utils
'yaml',
'requests',
'tqdm',
'regex',
'ftfy',
# Standard
'sqlite3',
'json',
'logging',
'pathlib',
'concurrent.futures',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
# Escludi moduli non necessari per ridurre dimensione
'matplotlib',
'notebook',
'jupyter',
'IPython',
'sphinx',
'pytest',
'setuptools',
'pip',
'wheel',
'tkinter',
],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='OffGallery',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False, # Windowed, no console
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
# Icona (opzionale - crea assets/icon.ico se vuoi)
# icon='assets/icon.ico',
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='OffGallery',
)