-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (40 loc) · 1.01 KB
/
setup.py
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
"""
This is a setup.py script generated by py2app for macOS application packaging.
"""
from setuptools import setup
APP = ['src/main.py']
DATA_FILES = [
('', ['default_config.json']) # 添加默认配置文件到根目录
]
OPTIONS = {
'argv_emulation': True,
'packages': [
'PyQt6',
'cv2',
'numpy',
'mss',
'plyer',
'notifypy',
'simpleaudio',
'pydub'
],
'iconfile': 'resources/icon.icns',
'plist': {
'CFBundleName': 'WatchCat',
'CFBundleDisplayName': 'WatchCat',
'CFBundleIdentifier': 'com.cs-magic.watchcat',
'CFBundleVersion': '0.1.0',
'CFBundleShortVersionString': '0.1.0',
'LSMinimumSystemVersion': '10.10',
'NSHighResolutionCapable': True,
'NSHumanReadableCopyright': 'Copyright 2024 CS Magic. All rights reserved.'
}
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
name='WatchCat',
version='0.1.0',
)