-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (42 loc) · 1.48 KB
/
setup.py
File metadata and controls
49 lines (42 loc) · 1.48 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
# filepath: /Users/jacob/Documents/Dev/ResolveRPC-macOS/setup.py
from setuptools import setup
import sys # Import sys module
APP_NAME = "ResolveRPC"
APP_SCRIPT = 'resolve_rich_presence.py'
ICON_FILE = 'ResolveRPC.icns'
# Path to DaVinci Resolve's scripting modules
RESOLVE_SCRIPT_MODULES_PATH = "/Library/Application Support/Blackmagic Design/DaVinci Resolve/Developer/Scripting/Modules"
# Add Resolve's scripting modules path to sys.path so py2app can find it
if RESOLVE_SCRIPT_MODULES_PATH not in sys.path:
sys.path.append(RESOLVE_SCRIPT_MODULES_PATH)
DATA_FILES = [('', ['topicon.png'])]
OPTIONS = {
'argv_emulation': False,
'iconfile': ICON_FILE,
'plist': {
'CFBundleName': APP_NAME,
'CFBundleDisplayName': APP_NAME,
'CFBundleGetInfoString': "DaVinci Resolve Rich Presence for Discord",
'CFBundleIdentifier': "net.jacobb.resolverpc",
'CFBundleVersion': "1.0.0",
'CFBundleShortVersionString': "1.0",
'LSUIElement': True,
'NSHumanReadableCopyright': u"Copyright © 2025 Jacobb. All rights reserved.",
},
'packages': [
'rumps',
'pypresence',
'psutil',
'typing_extensions'
],
'excludes': [],
# py2app will find DaVinciResolveScript via sys.path and py_modules
}
setup(
app=[APP_SCRIPT],
name=APP_NAME,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
py_modules=['DaVinciResolveScript'] # Add DaVinciResolveScript here
)