-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (46 loc) · 1.38 KB
/
setup.py
File metadata and controls
49 lines (46 loc) · 1.38 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
"""
py2app build script for RivaVoice
Usage:
python setup.py py2app
"""
import sys
from setuptools import setup
APP = ['rivavoice.py']
DATA_FILES = []
OPTIONS = {
'argv_emulation': False,
'packages': ['rivacore'],
'includes': [
'rivacore',
'rivacore.audio',
'rivacore.backend',
'rivacore.chunked_audio',
'rivacore.config',
'rivacore.hotkey',
'rivacore.permissions',
'rivacore.text_utils',
'rivacore.transcriber',
],
'excludes': ['tkinter'],
'iconfile': 'RivaVoice.icns' if sys.platform == 'darwin' else None,
'plist': {
'CFBundleName': 'RivaVoice',
'CFBundleDisplayName': 'RivaVoice',
'CFBundleIdentifier': 'com.199biotechnologies.rivavoice',
'CFBundleVersion': '2.0.0',
'CFBundleShortVersionString': '2.0.0',
'NSMicrophoneUsageDescription': 'RivaVoice needs access to your microphone to record speech for transcription.',
'NSAppleEventsUsageDescription': 'RivaVoice needs access to simulate keystrokes for auto-paste functionality.',
'LSUIElement': False, # Show in dock since it's a terminal app
'LSMinimumSystemVersion': '10.15',
},
'semi_standalone': False,
'site_packages': True,
}
setup(
name='RivaVoice',
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)