-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (28 loc) · 1014 Bytes
/
Copy pathsetup.py
File metadata and controls
33 lines (28 loc) · 1014 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
28
29
30
31
32
33
from setuptools import setup
import pkg_resources
pkg_resources.require("setuptools==70.3.0")
APP = ['back_trace.py'] # Replace with your main script filename
DATA_FILES = ['config.json']
OPTIONS = {
'argv_emulation': False,
'iconfile': 'MyAppIcon.icns', # Optional: path to your icon file
'plist': {
'CFBundleName': "MySQL Log Viewer",
'CFBundleDisplayName': "MySQL Log Viewer",
'CFBundleVersion': "1.0.0",
'CFBundleShortVersionString': "1.0.0",
'NSHumanReadableCopyright': "Copyright © 2023, Zhang Ruibin",
'PyRuntimeLocations': [
'@executable_path/../Frameworks/Python.framework/Versions/Current/Python'
],
'CFBundleIconFile': 'MyAppIcon',
},
'packages': ['PyQt5', 'mysql', 'sqlparse', 'pygments'],
'includes': ['PyQt5.QtCore', 'PyQt5.QtGui', 'PyQt5.QtWidgets'],
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app', 'setuptools==70.3.0'],
)