-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSoVitsSVC-OSX.spec
More file actions
148 lines (140 loc) · 3.92 KB
/
SoVitsSVC-OSX.spec
File metadata and controls
148 lines (140 loc) · 3.92 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
# -*- mode: python ; coding: utf-8 -*-
"""
PyInstaller spec file for so-vits-svc-fork macOS Application
This creates a native macOS app bundle with MPS GPU support
"""
import sys
from pathlib import Path
# Get the project root directory
project_root = Path(os.getcwd())
# Define the application name
app_name = 'SoVitsSVC-OSX'
# Analysis configuration
a = Analysis(
['src/so_vits_svc_fork/gui_web.py'],
pathex=[str(project_root / 'src')],
binaries=[],
datas=[
# Include the default GUI presets
('src/so_vits_svc_fork/default_gui_presets.json', 'so_vits_svc_fork'),
# Include config templates
('src/so_vits_svc_fork/preprocessing/config_templates', 'so_vits_svc_fork/preprocessing/config_templates'),
# Include the web UI files
('src/so_vits_svc_fork/webui', 'so_vits_svc_fork/webui'),
],
hiddenimports=[
'so_vits_svc_fork',
'so_vits_svc_fork.gui_web',
'so_vits_svc_fork.webui',
'so_vits_svc_fork.webui.server',
'so_vits_svc_fork.__main__',
'so_vits_svc_fork.inference.main',
'so_vits_svc_fork.inference.core',
'so_vits_svc_fork.train',
'so_vits_svc_fork.utils',
'so_vits_svc_fork.preprocessing',
'so_vits_svc_fork.cluster',
'so_vits_svc_fork.modules',
'torch',
'torchaudio',
'torchcrepe',
'transformers',
'librosa',
'sounddevice',
'soundfile',
'numpy',
'scipy',
'matplotlib',
'tensorboard',
'tensorboardx',
'lightning',
'pywebview',
'uvicorn',
'uvicorn.logging',
'uvicorn.loops',
'uvicorn.loops.auto',
'uvicorn.protocols',
'uvicorn.protocols.http',
'uvicorn.protocols.http.auto',
'uvicorn.protocols.websockets',
'uvicorn.protocols.websockets.auto',
'uvicorn.lifespan',
'uvicorn.lifespan.on',
'click',
'fastapi',
'parselmouth',
'pyworld',
'pebble',
'psutil',
'cm_time',
'rich',
'tqdm',
'requests',
# macOS-specific: PyObjC modules for pywebview Cocoa backend
'objc',
'Foundation',
'AppKit',
'WebKit',
'PyObjCTools',
'PyObjCTools.AppHelper',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
'tkinter',
'matplotlib.tests',
'numpy.random._examples',
],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name=f'{app_name}_bin',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False, # No console window
disable_windowed_traceback=False,
argv_emulation=False,
target_arch='arm64', # Target macOS Arm64 (Apple Silicon)
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name=app_name,
)
app = BUNDLE(
coll,
name=f'{app_name}.app',
icon='build/macos/SoVitsSVC-OSX.icns',
bundle_identifier='com.audiohacking.sovitssvc-osx',
info_plist={
'CFBundleName': app_name,
'CFBundleDisplayName': 'so-vits-svc OSX',
'CFBundleVersion': '1.0.0',
'CFBundleShortVersionString': '1.0.0',
'CFBundleExecutable': f'{app_name}_bin',
'NSHighResolutionCapable': True,
'NSRequiresAquaSystemAppearance': False,
'LSMinimumSystemVersion': '11.0',
'NSMicrophoneUsageDescription': 'This app requires microphone access for real-time voice conversion.',
'NSAppleEventsUsageDescription': 'This app requires Apple Events for automation.',
'LSApplicationCategoryType': 'public.app-category.music',
# MPS/Metal GPU support
'NSSupportsAutomaticGraphicsSwitching': True,
'GPUEject': False,
},
)