-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsetup_app.py
More file actions
27 lines (24 loc) · 791 Bytes
/
setup_app.py
File metadata and controls
27 lines (24 loc) · 791 Bytes
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
"""py2app setup for vibetotext."""
from setuptools import setup
APP = ['src/vibetotext/cli.py']
DATA_FILES = []
OPTIONS = {
'argv_emulation': False,
'plist': {
'CFBundleName': 'VibeToText',
'CFBundleDisplayName': 'VibeToText',
'CFBundleIdentifier': 'com.vibetotext.app',
'CFBundleVersion': '0.1.0',
'CFBundleShortVersionString': '0.1.0',
'LSUIElement': True, # Menu bar app (no dock icon)
'NSMicrophoneUsageDescription': 'VibeToText needs microphone access to transcribe your voice.',
},
'packages': ['whisper', 'torch', 'numpy', 'sounddevice', 'pynput', 'tiktoken'],
'includes': ['vibetotext'],
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)