-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (61 loc) · 2.16 KB
/
Copy pathsetup.py
File metadata and controls
67 lines (61 loc) · 2.16 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
"""
py2app setup script for Speechy - Alternative build method to PyInstaller
Usage:
pip install py2app
python setup.py py2app
The built app will be in dist/Speechy.app
"""
from setuptools import setup
APP = ['voice-assistant/main.py']
DATA_FILES = [
'icon.icns',
'voice-assistant/Info.plist',
'voice-assistant/entitlements.plist'
]
OPTIONS = {
'argv_emulation': True,
'iconfile': 'icon.icns',
'plist': {
'CFBundleName': 'Speechy',
'CFBundleDisplayName': 'Speechy',
'CFBundleIdentifier': 'com.chrisventer.speechy',
'CFBundleVersion': '1.0.0',
'CFBundleShortVersionString': '1.0.0',
'CFBundlePackageType': 'APPL',
'CFBundleSignature': '????',
'CFBundleExecutable': 'Speechy',
'CFBundleIconFile': 'icon.icns',
'NSMicrophoneUsageDescription': 'Speechy needs microphone access to record your voice for speech-to-text transcription and AI assistance.',
'NSAppleEventsUsageDescription': 'Speechy needs to control other applications to enable auto-typing functionality and global hotkey support.',
'NSInputMonitoringUsageDescription': 'Speechy needs Input Monitoring access to detect global hotkeys (like F9) for hands-free voice recording control.',
'NSSystemAdministrationUsageDescription': 'Speechy needs system administration access for advanced input monitoring and accessibility features.',
'LSMinimumSystemVersion': '10.15.0',
'NSHighResolutionCapable': True,
'NSRequiresAquaSystemAppearance': False,
'LSApplicationCategoryType': 'public.app-category.productivity',
'NSSupportsAutomaticTermination': True,
'NSSupportsSuddenTermination': True,
},
'includes': [
'pynput.keyboard._darwin',
'pynput.mouse._darwin',
'PyQt5.sip'
],
'excludes': [
'tkinter',
'matplotlib',
'scipy',
'test',
'tests'
],
'resources': ['icon.icns'],
'optimize': 1,
}
setup(
name='Speechy',
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
description='Speechy - Your AI Voice Assistant'
)